mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-13 06:46:11 -06: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:
parent
05fd490777
commit
05cbd8a3c8
1 changed files with 3 additions and 1 deletions
|
|
@ -948,7 +948,9 @@ void PrintingTaskPanel::paint(wxPaintEvent&)
|
|||
}
|
||||
else
|
||||
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);
|
||||
|
||||
if (m_plate_index >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue