mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX:Add a protection for m_thumbnail_bmp_display
jira: none Change-Id: Idc830eec7fcf5dfa93b4aaca50a8ae726e5c8cc0 (cherry picked from commit e3d4563720ec8aaf91cf13678d956c99cc8e9e82)
This commit is contained in:
@@ -948,7 +948,9 @@ void PrintingTaskPanel::paint(wxPaintEvent&)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
dc.SetTextForeground(*wxBLACK);
|
dc.SetTextForeground(*wxBLACK);
|
||||||
dc.DrawBitmap(m_thumbnail_bmp_display, wxPoint(0, 0));
|
if (m_thumbnail_bmp_display.IsOk()) {
|
||||||
|
dc.DrawBitmap(m_thumbnail_bmp_display, wxPoint(0, 0));
|
||||||
|
}
|
||||||
dc.SetFont(Label::Body_12);
|
dc.SetFont(Label::Body_12);
|
||||||
|
|
||||||
if (m_plate_index >= 0) {
|
if (m_plate_index >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user