Coverity: [skip ci] Dereference before null check

Remove logically dead code because 'pcActiveBody' cannot be null at this stage
This commit is contained in:
wmayer
2020-07-21 14:33:54 +02:00
parent 5584c36c1b
commit f32248997e

View File

@@ -728,11 +728,8 @@ void CmdPartDesignNewSketch::activated(int iMsg)
if ( ( geoGroup && geoGroup->hasObject ( plane, true ) ) ||
!App::GeoFeatureGroupExtension::getGroupOfObject ( plane ) ) {
status.push_back ( PartDesignGui::TaskFeaturePick::otherPart );
} else if (pcActiveBody) {
} else {
status.push_back ( PartDesignGui::TaskFeaturePick::notInBody );
} else { // if we are outside a body count it as valid
validPlaneCount++;
status.push_back(PartDesignGui::TaskFeaturePick::validFeature);
}
}
}