From: sbh Date: Mon, 13 Apr 2015 06:58:53 +0000 (+0300) Subject: Runtime error in PartSet_MenuMgr::addViewerItems X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=962b190dc47140ab1f316bd04a542c8671d470e0;p=modules%2Fshaper.git Runtime error in PartSet_MenuMgr::addViewerItems --- 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