mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX:add protection when slice information is not available
Change-Id: Iaf654c8a14252f6647a64ded97d4ded3e79d7057
This commit is contained in:
@@ -1753,6 +1753,7 @@ void StatusPanel::update_basic_print_data(bool def)
|
||||
{
|
||||
if (def) {
|
||||
if (!obj) return;
|
||||
if (!obj->slice_info) return;
|
||||
wxString prediction = wxString::Format("%s", get_bbl_time_dhms(obj->slice_info->prediction));
|
||||
wxString weight = wxString::Format("%.2fg", obj->slice_info->weight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user