]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Length must not be zero or negative
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 23 Sep 2014 13:32:42 +0000 (17:32 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 23 Sep 2014 13:32:42 +0000 (17:32 +0400)
src/SketchPlugin/plugin-Sketch.xml

index 04a99179e35405f7844edbd0aef9670dcfccca2e..16c1b106d4f20f942f35c6bb1aade4b0d9903872 100644 (file)
           <validator id="SketchPlugin_ResultLine"/>
         </feature_selector>
         <point_selector id="ConstraintFlyoutValuePnt" internal="1"/>
-        <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed"/>
-        <validator id="PartSet_LengthValidator"/> 
+        <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed">
+          <validator id="GeomValidators_Positive"/>
+        </doublevalue_editor>
+        <validator id="PartSet_LengthValidator"/>
       </feature>
       
       <feature id="SketchConstraintRadius" title="Radius" tooltip="Create constraint for the given radius of a circle or an arc" icon=":icons/radius_constr.png">