mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
fix the rendering of the icons on combobox
This commit is contained in:
@@ -194,7 +194,7 @@ void TextInput::render(wxDC& dc)
|
||||
// start draw
|
||||
wxPoint pt = {5, 0};
|
||||
if (icon.bmp().IsOk()) {
|
||||
wxSize szIcon = icon.GetSize();
|
||||
wxSize szIcon = get_preferred_size(icon.bmp(), m_parent);
|
||||
pt.y = (size.y - szIcon.y) / 2;
|
||||
dc.DrawBitmap(icon.get_bitmap(), pt);
|
||||
pt.x += szIcon.x + 0;
|
||||
|
||||
Reference in New Issue
Block a user