Salome HOME
Fix bug 12796: Warning missed for the bad file 'test18.med'
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SpinBox.cxx
index 54c247a80620ad7a5ac0223ad4fae1b60dd4db8a..a79c6ad64c761e30d81fdb752ebd94e55f116933 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -95,6 +95,8 @@ QString SMESHGUI_SpinBox::GetString()
 void SMESHGUI_SpinBox::RangeStepAndValidator
   (double min, double max, double step, unsigned short decimals)
 {
+  setPrecision(-decimals); // PAL8769. Minus is for using 'g' double->string conversion specifier,
+  //                          see QtxDblSpinBox::mapValueToText( double v )
   setRange(min, max);
   setLineStep(step);
   ((QDoubleValidator*)validator())->setRange(min, max, decimals);