[TD]fix fail on missing base view (#7856)
This commit is contained in:
@@ -227,6 +227,10 @@ bool ViewProviderViewPart::setEdit(int ModNum)
|
||||
TechDraw::DrawViewPart* dvp = getViewObject();
|
||||
TechDraw::DrawViewDetail* dvd = dynamic_cast<TechDraw::DrawViewDetail*>(dvp);
|
||||
if (dvd) {
|
||||
if (!dvd->BaseView.getValue()) {
|
||||
Base::Console().Error("DrawViewDetail - %s - has no BaseView!\n", dvd->getNameInDocument());
|
||||
return false;
|
||||
}
|
||||
// clear the selection (convenience)
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Control().showDialog(new TaskDlgDetail(dvd));
|
||||
|
||||
Reference in New Issue
Block a user