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 1f04880da9
commit 5d76afe0a5
8 changed files with 23 additions and 24 deletions

View File

@@ -410,7 +410,7 @@ void ProfileBased::onChanged(const App::Property* prop)
{
if (prop == &Profile) {
// if attached to a sketch then mark it as read-only
this->Placement.setStatus(App::Property::ReadOnly, Profile.getValue());
this->Placement.setStatus(App::Property::ReadOnly, Profile.getValue() != nullptr);
}
FeatureAddSub::onChanged(prop);

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