mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 18:33:19 +08:00
FIX:Add a protection for m_thumbnail_bmp_display
jira: none Change-Id: Idc830eec7fcf5dfa93b4aaca50a8ae726e5c8cc0
This commit is contained in:
parent
9b8845174c
commit
e3d4563720
@ -956,7 +956,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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user