mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-11 16:00:17 -07:00
fix the rendering of the icons on combobox
This commit is contained in:
parent
6d149e0698
commit
413e8751c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue