Salome HOME
Fix of crash in issue #416
[modules/shaper.git] / src / ConstructionPlugin / axis_widget.xml
index 2b0659c7d6f95776eac50c6253c7bf08b77c49a4..a3424e3f1b1d5acb8a0b43f68b91684142b7da1d 100644 (file)
@@ -1,18 +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"
-       use_subshapes="true"
-  />
+  <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"
-    shape_types="vertex"
-       use_subshapes="true">
+    tooltip="Select a second point"
+    shape_types="vertex">
+    <selection_filter id="NoConstructionSubShapesFilter"/>
+    <validator id="PartSet_DifferentShapes"/>
   </shape_selector>
 </source>