Fix crash on aborted pattern external axis

This commit is contained in:
Stefan Tröger
2016-01-15 20:53:14 +01:00
parent d6a2acbd3a
commit 463070b1f6
4 changed files with 10 additions and 0 deletions

View File

@@ -228,6 +228,8 @@ void TaskPolarPatternParameters::onSelectionChanged(const Gui::SelectionChanges&
App::DocumentObject* selObj;
PartDesign::PolarPattern* pcPolarPattern = static_cast<PartDesign::PolarPattern*>(getObject());
getReferencedSelection(pcPolarPattern, msg, selObj, axes);
if(!selObj)
return;
// Note: ReferenceSelection has already checked the selection for validity
if ( selectionMode == reference || selObj->isDerivedFrom ( App::Line::getClassTypeId () ) ) {
pcPolarPattern->Axis.setValue(selObj, axes);