Salome HOME
Dump Puthon extension
[modules/geom.git] / src / BasicGUI / BasicGUI_PointDlg.cxx
index 36027937dee5532cf461b0ead2761d234ccae7f3..ff41a0e6b5c04e5409cf974297279b6bcf2071c4 100644 (file)
@@ -706,7 +706,8 @@ bool BasicGUI_PointDlg::isValid( QString& msg )
     return !myRefPoint->_is_nil() && ok;
   }
   else if ( id == 2 ) {
-    return !myEdge->_is_nil() && GroupOnCurve->SpinBox_DX->isValid( msg, !IsPreview() );
+    bool ok = GroupOnCurve->SpinBox_DX->isValid( msg, !IsPreview() );
+    return !myEdge->_is_nil() && ok;
   }
   else if ( id == 3 )
     return ( !myLine1->_is_nil() && !myLine2->_is_nil() );