Salome HOME
Fix of crash in issue #416
[modules/shaper.git] / src / ConstructionPlugin / axis_widget.xml
index e6472b6dbec49373a3065e574d66d949c48d7dd0..a3424e3f1b1d5acb8a0b43f68b91684142b7da1d 100644 (file)
@@ -1,17 +1,19 @@
 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
 <source>
-  <shape_selector id="firstPoint" 
-    label="First point" 
-    icon=":icons/point.png" 
-    tooltip="Select a first point for the axis"
-    shape_types="vertex"
-  />
+  <shape_selector id="firstPoint"
+    label="First point"
+    icon=":icons/point.png"
+    tooltip="Select a first point"
+    shape_types="vertex">
+    <selection_filter id="NoConstructionSubShapesFilter"/>
+  </shape_selector>
   <shape_selector id="secondPoint"
     label="Second point"
     icon=":icons/point.png"
-    tooltip="Select a second point for the axis"
+    tooltip="Select a second point"
     shape_types="vertex">
-    <validator id="PartSet_DifferentObjects"/>
+    <selection_filter id="NoConstructionSubShapesFilter"/>
+    <validator id="PartSet_DifferentShapes"/>
   </shape_selector>
 </source>