re-add some nullptr

to be safe since their removal within assert() or bools might have some impact I don't know
This commit is contained in:
Uwe
2022-07-18 02:32:36 +02:00
parent 8b99abd81b
commit 24468b59ad
8 changed files with 23 additions and 24 deletions

View File

@@ -200,7 +200,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
if ( docHaveBodies ) {
bool addMoveFeature = true;
bool addMoveFeatureInTree = body;
bool addMoveFeatureInTree = (body != nullptr);
for (auto sel: selection) {
// if at least one selected feature cannot be moved to a body
// disable the entry