fix crash in boolean op if no base feature exists

This commit is contained in:
Stefan Tröger
2015-07-06 19:40:27 +02:00
parent 98717f010a
commit 4e295c03ed

View File

@@ -182,7 +182,7 @@ void TaskBooleanParameters::onButtonBodyAdd(bool checked)
if (doc != NULL)
BooleanView->hide();
PartDesign::Boolean* pcBoolean = static_cast<PartDesign::Boolean*>(BooleanView->getObject());
if (pcBoolean->Bodies.getValues().empty())
if (pcBoolean->Bodies.getValues().empty() && pcBoolean->BaseFeature.getValue())
doc->setHide(pcBoolean->BaseFeature.getValue()->getNameInDocument());
selectionMode = bodyAdd;
Gui::Selection().clearSelection();