mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-23 04:01:49 +00:00
FIX: ComboBox set icon
Change-Id: If74ccca3649913d8cf6664347d082f75e4425b00 Jira: STUDIO-8640 (cherry picked from commit 7ce090d2b5308650d5cb10f0dac021efa181214d)
This commit is contained in:
@@ -332,7 +332,8 @@ void DropDown::messureSize()
|
||||
wxSize size1 = text_off ? wxSize() : dc.GetMultiLineTextExtent(texts[i]);
|
||||
if (icons[i].IsOk()) {
|
||||
wxSize size2 = GetBmpSize(icons[i]);
|
||||
if (size2.x > iconSize.x) iconSize = size2;
|
||||
if (size2.x > iconSize.x)
|
||||
iconSize = size2;
|
||||
if (!align_icon) {
|
||||
size1.x += size2.x + (text_off ? 0 : 5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user