From: nds Date: Thu, 25 Jun 2015 08:36:37 +0000 (+0300) Subject: Issue #640 It is impossible to remove dimension X-Git-Tag: V_1.3.0~190 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f6112df02810369e4a1518834a18294e401adae8;p=modules%2Fshaper.git Issue #640 It is impossible to remove dimension --- diff --git a/src/PartSet/PartSet_MenuMgr.cpp b/src/PartSet/PartSet_MenuMgr.cpp index 1664be769..744b9b4f0 100644 --- a/src/PartSet/PartSet_MenuMgr.cpp +++ b/src/PartSet/PartSet_MenuMgr.cpp @@ -172,7 +172,7 @@ bool PartSet_MenuMgr::addViewerMenu(QMenu* theMenu, const QMap aPrsList = aSelection->getSelected(); + QList aPrsList = aSelection->getSelected(ModuleBase_ISelection::AllControls); TopoDS_Shape aShape; ResultPtr aResult; FeaturePtr aFeature; diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 2be0fb987..096c090f2 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -380,24 +380,6 @@ void PartSet_Module::propertyPanelDefined(ModuleBase_Operation* theOperation) } } } - } else { - // Start editing constraint - if (theOperation->isEditOperation()) { - // TODO: #391 - to be removed - std::string aId = theOperation->id().toStdString(); - if (PartSet_SketcherMgr::isNestedSketchOperation(theOperation) && - PartSet_SketcherMgr::isDistanceOperation(theOperation)) { - // Find and activate widget for management of point for dimension line position - QList aWidgets = aPanel->modelWidgets(); - foreach (ModuleBase_ModelWidget* aWgt, aWidgets) { - PartSet_WidgetPoint2D* aPntWgt = dynamic_cast(aWgt); - if (aPntWgt) { - aPanel->activateWidget(aPntWgt); - return; - } - } - } - } } }