]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2694: Show pop-up editor for distance value
authorvsv <vsv@opencascade.com>
Wed, 17 Oct 2018 12:30:08 +0000 (15:30 +0300)
committervsv <vsv@opencascade.com>
Wed, 17 Oct 2018 12:30:32 +0000 (15:30 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index f035706e13305a1b851e2a2788c874a11018128e..a67aa0f36fc60f44ea18a9a3eb13156a6ea66440 100755 (executable)
@@ -648,8 +648,10 @@ 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() == SketchPlugin_Constraint::VALUE() ||
-            aWgt->attributeID() == SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID()) {
+        std::string anId = aWgt->attributeID();
+        if (anId == SketchPlugin_Constraint::VALUE() ||
+          anId == SketchPlugin_ConstraintAngle::ANGLE_VALUE_ID() ||
+          anId == SketchPlugin_ConstraintDistanceAlongDir::DISTANCE_VALUE_ID()) {
           PartSet_WidgetEditor* anEditor = dynamic_cast<PartSet_WidgetEditor*>(aWgt);
           if (anEditor)
             anEditor->showPopupEditor();