fix crash in fillet/chamfer dialog if no part exists in document
This commit is contained in:
@@ -793,10 +793,12 @@ void DlgFilletEdges::on_selectAllButton_clicked()
|
||||
model->blockSignals(block);
|
||||
model->updateCheckStates();
|
||||
|
||||
App::Document* doc = d->object->getDocument();
|
||||
Gui::Selection().addSelection(doc->getName(),
|
||||
d->object->getNameInDocument(),
|
||||
subElements);
|
||||
if (d->object) {
|
||||
App::Document* doc = d->object->getDocument();
|
||||
Gui::Selection().addSelection(doc->getName(),
|
||||
d->object->getNameInDocument(),
|
||||
subElements);
|
||||
}
|
||||
}
|
||||
|
||||
void DlgFilletEdges::on_selectNoneButton_clicked()
|
||||
@@ -811,8 +813,10 @@ void DlgFilletEdges::on_selectNoneButton_clicked()
|
||||
model->blockSignals(block);
|
||||
model->updateCheckStates();
|
||||
|
||||
App::Document* doc = d->object->getDocument();
|
||||
Gui::Selection().clearSelection(doc->getName());
|
||||
if (d->object) {
|
||||
App::Document* doc = d->object->getDocument();
|
||||
Gui::Selection().clearSelection(doc->getName());
|
||||
}
|
||||
}
|
||||
|
||||
void DlgFilletEdges::on_filletType_activated(int index)
|
||||
|
||||
Reference in New Issue
Block a user