[TD] Use isProjectGroupItem() in remaining cases
- isDerivedFrom<DrawProjGroupItem>() is no longer reliable due to smart view creation changes.
This commit is contained in:
committed by
Chris Hennes
parent
98f50c218a
commit
2df371f50f
@@ -572,7 +572,7 @@ private:
|
||||
TopoDS_Shape shape = ShapeUtils::mirrorShape(gObj->getVisHard());
|
||||
double offX = 0.0;
|
||||
double offY = 0.0;
|
||||
if (dvp->isDerivedFrom<TechDraw::DrawProjGroupItem>()) {
|
||||
if (DrawView::isProjGroupItem(dvp)) {
|
||||
TechDraw::DrawProjGroupItem* dpgi = static_cast<TechDraw::DrawProjGroupItem*>(dvp);
|
||||
TechDraw::DrawProjGroup* dpg = dpgi->getPGroup();
|
||||
if (dpg) {
|
||||
|
||||
Reference in New Issue
Block a user