TechDraw: Fix some Coverity Unchecked dynamic_cast
CIDs from sasobadovinac-FreeCAD: 151684 151714 151715 151716 151718 151719 151720 151721 151722 151724 151725 151730 151749 151759 151771 151794
This commit is contained in:
@@ -464,8 +464,7 @@ void QGVPage::toggleHatch(bool enable)
|
||||
int faceItemType = QGraphicsItem::UserType + 104;
|
||||
for (auto& c:partChildren) {
|
||||
if (c->type() == faceItemType) {
|
||||
QGIFace* f = dynamic_cast<QGIFace*>(c);
|
||||
f->toggleSvg(enable);
|
||||
static_cast<QGIFace*>(c)->toggleSvg(enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user