PVS: V560 A part of conditional expression is always true
This commit is contained in:
@@ -758,7 +758,7 @@ void finishFeature(const Gui::Command* cmd, const std::string& FeatName,
|
||||
pcActiveBody = PartDesignGui::getBody(/*messageIfNot = */false);
|
||||
}
|
||||
|
||||
if (hidePrevSolid && prevSolidFeature && (prevSolidFeature != NULL))
|
||||
if (hidePrevSolid && prevSolidFeature)
|
||||
cmd->doCommand(cmd->Gui,"Gui.activeDocument().hide(\"%s\")", prevSolidFeature->getNameInDocument());
|
||||
|
||||
if (updateDocument)
|
||||
|
||||
@@ -205,7 +205,7 @@ void ViewProvider::onChanged(const App::Property* prop) {
|
||||
return;
|
||||
|
||||
Gui::ViewProviderDocumentObject* vpd = static_cast<ViewProviderDocumentObject*>(vp);
|
||||
if(vpd && vpd->Visibility.getValue())
|
||||
if (vpd->Visibility.getValue())
|
||||
vpd->Visibility.setValue(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user