]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Quick correction to do not build coincidence to central point of reentrant tangent arc
authornds <nds@opencascade.com>
Tue, 6 Sep 2016 11:39:36 +0000 (14:39 +0300)
committernds <nds@opencascade.com>
Tue, 6 Sep 2016 11:39:36 +0000 (14:39 +0300)
src/PartSet/PartSet_SketcherReetntrantMgr.cpp

index 8fdf8380ffef3552453f1d7adc95595f49552179..517e961c606e45118c444a44d6d45a145117d865 100755 (executable)
@@ -27,6 +27,7 @@
 #include <SketchPlugin_Line.h>
 #include <SketchPlugin_Arc.h>
 #include <SketchPlugin_Circle.h>
+#include <SketchPlugin_Point.h>
 
 #include <XGUI_Workshop.h>
 #include <XGUI_ModuleConnector.h>
@@ -226,7 +227,7 @@ bool PartSet_SketcherReetntrantMgr::processMouseReleased(ModuleBase_IViewWindow*
       PartSet_WidgetPoint2D* aPoint2DWdg = dynamic_cast<PartSet_WidgetPoint2D*>(module()->activeWidget());
       ModuleBase_ModelWidget* aFirstWidget = aPanel->findFirstAcceptingValueWidget();
       if (aPoint2DWdg && aPoint2DWdg == aFirstWidget) {
-        if (!aPreSelected.empty())
+        if (!aPreSelected.empty() && myPreviousFeature->getKind() == SketchPlugin_Point::ID())
           aPoint2DWdg->setPreSelection(aPreSelected.front());
         aPoint2DWdg->mouseReleased(theWnd, theEvent);
         if (!aPreSelected.empty())