PVS: V522 There might be dereferencing of a potential null pointer
This commit is contained in:
@@ -392,7 +392,9 @@ void ViewProviderFemMesh::onChanged(const App::Property* prop)
|
||||
else if (prop == &ShowInner ) {
|
||||
// recalc mesh with new settings
|
||||
ViewProviderFEMMeshBuilder builder;
|
||||
builder.createMesh(&(dynamic_cast<Fem::FemMeshObject*>(this->pcObject)->FemMesh), pcCoords, pcFaces, pcLines, vFaceElementIdx, vNodeElementIdx, onlyEdges, ShowInner.getValue(), MaxFacesShowInner.getValue());
|
||||
builder.createMesh(&(static_cast<Fem::FemMeshObject*>(this->pcObject)->FemMesh),
|
||||
pcCoords, pcFaces, pcLines, vFaceElementIdx, vNodeElementIdx,
|
||||
onlyEdges, ShowInner.getValue(), MaxFacesShowInner.getValue());
|
||||
}
|
||||
else if (prop == &LineWidth) {
|
||||
pcDrawStyle->lineWidth = LineWidth.getValue();
|
||||
|
||||
Reference in New Issue
Block a user