]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for a crash: Create sketch, circle, Radius constraint with 0 value.
authornds <nds@opencascade.com>
Thu, 3 Sep 2015 08:39:15 +0000 (11:39 +0300)
committernds <nds@opencascade.com>
Thu, 3 Sep 2015 08:39:40 +0000 (11:39 +0300)
It appends a positive value validator in order to solver is not performed when the value is not valid.

src/SketchPlugin/plugin-Sketch.xml

index 5931d354a858c6530f6ca188b327f9d7312a6e99..d1ab44b6c7375624d3904a08117c34ade6a3dac5 100644 (file)
@@ -98,7 +98,9 @@
             <validator id="GeomValidators_ShapeType" parameters="circle"/>
         </shape_selector>
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
-        <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
+        <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed">
+          <validator id="GeomValidators_Positive"/>
+        </doublevalue_editor>
         <validator id="PartSet_RadiusSelection"/>
       </feature>