Salome HOME
Merge branch 'master' of newgeom:newgeom
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 08:11:49 +0000 (11:11 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 08:11:49 +0000 (11:11 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index cd728aa7adcb2711218549b172b0062bd6b83df1..30410bfdc998c7a028f8818f42509cc8ef4ec43f 100644 (file)
@@ -29,6 +29,9 @@
 
 #include <Events_Loop.h>
 
+#include <TopoDS.hxx>
+#include <TopoDS_Vertex.hxx>
+
 #ifdef _DEBUG
 #include <QDebug>
 #endif
@@ -256,6 +259,9 @@ bool ModuleBase_Operation::activateByPreselection()
     aPrs = (*aPIt);
     ModuleBase_WidgetValueFeature aValue;
     aValue.setObject(aPrs.object());
+    // Check if the selection has a selected point
+    // for today it is impossible to do because
+    // the selected point demands convertation to Sketch plane 2d
     if (!aWgt->setValue(&aValue))
       break;
   }