FIX: StaticBox zero size bitmap

Change-Id: I33d942f771171fe1f2a61b5f3d1a66a6c7e0da05
This commit is contained in:
chunmao.guo
2022-12-13 16:40:50 +08:00
committed by Lane.Wei
parent ddc0c6e3a9
commit 08e64afb4a

View File

@@ -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);