]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct behavior of spin boxes in "Chamfer" dialog box.
authorvsr <vsr@opencascade.com>
Wed, 22 Oct 2008 09:01:06 +0000 (09:01 +0000)
committervsr <vsr@opencascade.com>
Wed, 22 Oct 2008 09:01:06 +0000 (09:01 +0000)
src/OperationGUI/OperationGUI_ChamferDlg.cxx

index e5914d23d5ff22145f12e11b142f0e2fa3b3773a..810799c9f8bb2b6570da4f70b6b221663c5c251c 100644 (file)
@@ -220,9 +220,10 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg(GeometryGUI* theGeometryGUI, QW
   QMap< int, DlgRef_SpinBox* >::iterator anIter;
   for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
     {
-      anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 );
       if ( anIter.key() == SpinBox44 || anIter.key() == SpinBox34 || anIter.key() == SpinBox24 )
            anIter.data()->RangeStepAndValidator( 0.001, 89.999, 5, 0 );
+      else
+           anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, DBL_DIGITS_DISPLAY );
     }
 
   setHelpFileName("chamfer_operation_page.html");