From f6112df02810369e4a1518834a18294e401adae8 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 25 Jun 2015 11:36:37 +0300 Subject: [PATCH] Issue #640 It is impossible to remove dimension --- src/PartSet/PartSet_MenuMgr.cpp | 2 +- src/PartSet/PartSet_Module.cpp | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) 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; - } - } - } - } } } -- 2.39.2