mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 04:16:01 +08:00
Fixed a fishy null pointer reference bug reported by ASAN time to time.
This commit is contained in:
parent
2c9bd86a70
commit
ed760ae932
@ -850,8 +850,9 @@ void ObjectList::list_manipulation(const wxPoint& mouse_pos, bool evt_context_me
|
|||||||
Select(item);
|
Select(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (col != nullptr)
|
||||||
|
{
|
||||||
const wxString title = col->GetTitle();
|
const wxString title = col->GetTitle();
|
||||||
|
|
||||||
if (title == " ")
|
if (title == " ")
|
||||||
toggle_printable_state(item);
|
toggle_printable_state(item);
|
||||||
else if (title == _("Editing"))
|
else if (title == _("Editing"))
|
||||||
@ -874,6 +875,7 @@ void ObjectList::list_manipulation(const wxPoint& mouse_pos, bool evt_context_me
|
|||||||
// workaround for extruder editing under OSX
|
// workaround for extruder editing under OSX
|
||||||
else if (wxOSX && evt_context_menu && title == _("Extruder"))
|
else if (wxOSX && evt_context_menu && title == _("Extruder"))
|
||||||
extruder_editing();
|
extruder_editing();
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef __WXMSW__
|
#ifndef __WXMSW__
|
||||||
GetMainWindow()->SetToolTip(""); // hide tooltip
|
GetMainWindow()->SetToolTip(""); // hide tooltip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user