From a44e1f088ca031842b08b507b51da73c6968a193 Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 13 Oct 2008 09:08:31 +0000 Subject: [PATCH] Qt4 porting. Fatal Error on Length value "0" (zero) in Hypothesis Length Near Vertex in 0D Algotithm. --- src/SMESHGUI/SMESHGUI_SpinBox.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_SpinBox.cxx b/src/SMESHGUI/SMESHGUI_SpinBox.cxx index d405feb99..d597fc36a 100644 --- a/src/SMESHGUI/SMESHGUI_SpinBox.cxx +++ b/src/SMESHGUI/SMESHGUI_SpinBox.cxx @@ -109,10 +109,11 @@ QDoubleValidator* SMESHGUI_SpinBox::validator() const void SMESHGUI_SpinBox::RangeStepAndValidator( double min, double max, double step, - unsigned short decimals ) + unsigned short precision ) { - setDecimals(decimals); // PAL8769. Minus is for using 'g' double->string conversion specifier, - // see QtxDoubleSpinBox::mapValueToText( double v ) - setRange( min, max ); + setPrecision(precision*(-1)); // PAL8769. Minus is for using 'g' double->string conversion specifier, + // see QtxDoubleSpinBox::mapValueToText( double v ) + setDecimals(32); + setRange(min, max); setSingleStep( step ); } -- 2.39.2