]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Edit angle value by double click
authornds <nds@opencascade.com>
Mon, 25 Apr 2016 08:10:10 +0000 (11:10 +0300)
committernds <nds@opencascade.com>
Mon, 25 Apr 2016 08:10:10 +0000 (11:10 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 2b19b4c70a11b7db128da3df7d558a6dfe0de06c..9b9077efa35d1563c0acea179c0a25aa84fec84b 100755 (executable)
@@ -613,7 +613,8 @@ void PartSet_SketcherMgr::onMouseDoubleClick(ModuleBase_IViewWindow* theWnd, QMo
       QList<ModuleBase_ModelWidget*> aWidgets = aPanel->modelWidgets();
       // Find corresponded widget to activate value editing
       foreach (ModuleBase_ModelWidget* aWgt, aWidgets) {
-        if (aWgt->attributeID() == "ConstraintValue") {
+        if (aWgt->attributeID() == SketchPlugin_Constraint::VALUE() ||
+            aWgt->attributeID() == SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID()) {
           PartSet_WidgetEditor* anEditor = dynamic_cast<PartSet_WidgetEditor*>(aWgt);
           if (anEditor)
             anEditor->showPopupEditor();