fix crashes when aborting linear pattern panel due access of null pointers
This commit is contained in:
@@ -196,6 +196,9 @@ namespace PartDesignGui
|
||||
void getReferencedSelection(const App::DocumentObject* thisObj, const Gui::SelectionChanges& msg,
|
||||
App::DocumentObject*& selObj, std::vector<std::string>& selSub)
|
||||
{
|
||||
if (!thisObj)
|
||||
return;
|
||||
|
||||
if (strcmp(thisObj->getDocument()->getName(), msg.pDocName) != 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user