[TD]prevent Complex Section with no Base View

This commit is contained in:
wandererfan
2022-11-14 16:03:21 -05:00
committed by WandererFan
parent 33bee19d81
commit 356faf94da
3 changed files with 28 additions and 12 deletions

View File

@@ -737,6 +737,12 @@ void execComplexSection(Gui::Command* cmd)
}
}
if (!baseView) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("I do not know what base view to use."));
return;
}
if (shapes.empty() &&
xShapes.empty() &&
!baseView) {