fix crash in boolean op if no base feature exists

This commit is contained in:
Stefan Tröger
2016-04-12 18:12:12 +02:00
parent 98717f010a
commit 4e295c03ed
@@ -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();