mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
1 parent
1238b40f14
commit
34b504d50e
1 file changed
+3
-2
@@ -1710,10 +1710,11 @@ bool BitmapChoiceRenderer::Render(wxRect rect, wxDC* dc, int state)
|
|||||||
{
|
{
|
||||||
dc->DrawBitmap(icon, rect.x, rect.y + (rect.height - icon.GetHeight()) / 2);
|
dc->DrawBitmap(icon, rect.x, rect.y + (rect.height - icon.GetHeight()) / 2);
|
||||||
xoffset = icon.GetWidth() + 4;
|
xoffset = icon.GetWidth() + 4;
|
||||||
|
|
||||||
|
if (rect.height==0)
|
||||||
|
rect.height= icon.GetHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rect.height==0)
|
|
||||||
rect.height= icon.GetHeight();
|
|
||||||
RenderText(m_value.GetText(), xoffset, rect, dc, state);
|
RenderText(m_value.GetText(), xoffset, rect, dc, state);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in new issue
Block a user