PVS: V1004 A pointer was used unsafely after it was verified against nullptr

This commit is contained in:
wmayer
2020-07-18 10:59:27 +02:00
parent 309f7197f4
commit 16f953ad65
6 changed files with 14 additions and 11 deletions
+1
View File
@@ -1195,6 +1195,7 @@ int DrawViewPart::add1CVToGV(std::string tag)
TechDraw::CosmeticVertex* cv = getCosmeticVertex(tag);
if (cv == nullptr) {
Base::Console().Message("DVP::add1CVToGV 2 - cv %s not found\n", tag.c_str());
return 0;
}
int iGV = geometryObject->addCosmeticVertex(cv->scaled(getScale()),
cv->getTagAsString());