From 962b190dc47140ab1f316bd04a542c8671d470e0 Mon Sep 17 00:00:00 2001 From: sbh Date: Mon, 13 Apr 2015 09:58:53 +0300 Subject: [PATCH] Runtime error in PartSet_MenuMgr::addViewerItems --- src/PartSet/PartSet_MenuMgr.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PartSet/PartSet_MenuMgr.cpp b/src/PartSet/PartSet_MenuMgr.cpp index 7e0442d51..4e4704f49 100644 --- a/src/PartSet/PartSet_MenuMgr.cpp +++ b/src/PartSet/PartSet_MenuMgr.cpp @@ -159,11 +159,11 @@ bool PartSet_MenuMgr::addViewerItems(QMenu* theMenu, const QMapsketchMgr()->activeSketch(); - std::shared_ptr aSketch = - std::dynamic_pointer_cast(aSketchFea); +// std::shared_ptr aSketch = +// std::dynamic_pointer_cast(aSketchFea); gp_Pnt aPnt = BRep_Tool::Pnt(TopoDS::Vertex(aShape)); std::shared_ptr aPnt3d(new GeomAPI_Pnt(aPnt.X(), aPnt.Y(), aPnt.Z())); - std::shared_ptr aSelPnt = aSketch->to2D(aPnt3d); +// std::shared_ptr aSelPnt = aSketch->to2D(aPnt3d); // Find coincident in these coordinates ObjectPtr aObj = aObjectsList.front(); @@ -176,10 +176,10 @@ bool PartSet_MenuMgr::addViewerItems(QMenu* theMenu, const QMap(aAttr->owner()); if (aConstrFeature->getKind() == SketchPlugin_ConstraintCoincidence::ID()) { std::shared_ptr a2dPnt = getPoint(aConstrFeature, SketchPlugin_ConstraintCoincidence::ENTITY_A()); - if (aSelPnt->isEqual(a2dPnt)) { - aCoincident = aConstrFeature; - break; - } +// if (aSelPnt->isEqual(a2dPnt)) { +// aCoincident = aConstrFeature; +// break; +// } } } // If we have coincidence then add Detach menu -- 2.39.2