fix crashes when aborting linear pattern panel due access of null pointers

This commit is contained in:
wmayer
2017-09-29 21:22:48 +02:00
parent 7ae850d756
commit 2244292552
2 changed files with 14 additions and 7 deletions

View File

@@ -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;