mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: StaticBox zero size bitmap
Change-Id: I33d942f771171fe1f2a61b5f3d1a66a6c7e0da05
This commit is contained in:
@@ -141,6 +141,8 @@ void StaticBox::render(wxDC& dc)
|
||||
}
|
||||
|
||||
wxSize size = GetSize();
|
||||
if (size.x <= 0 || size.y <= 0)
|
||||
return;
|
||||
wxMemoryDC memdc;
|
||||
wxBitmap bmp(size.x, size.y);
|
||||
memdc.SelectObject(bmp);
|
||||
|
||||
Reference in New Issue
Block a user