From 413e8751c071d8ee7b12d2ea50c9865bb81ce838 Mon Sep 17 00:00:00 2001 From: Ocraftyone Date: Wed, 8 Nov 2023 12:26:23 -0500 Subject: [PATCH] fix the rendering of the icons on combobox --- src/slic3r/GUI/Widgets/TextInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Widgets/TextInput.cpp b/src/slic3r/GUI/Widgets/TextInput.cpp index 26218d439b..00f04f50b7 100644 --- a/src/slic3r/GUI/Widgets/TextInput.cpp +++ b/src/slic3r/GUI/Widgets/TextInput.cpp @@ -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;