From: akl Date: Sat, 7 Jun 2008 07:58:06 +0000 (+0000) Subject: Fix IPAL18996(QT4 porting: crash creationg the fillet). X-Git-Tag: V5_1_0a1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6b1a6e8a485a0eae2699890785d2abfa9e94ee9;p=modules%2Fgeom.git Fix IPAL18996(QT4 porting: crash creationg the fillet). --- diff --git a/src/GEOMBase/GEOMBase_Skeleton.cxx b/src/GEOMBase/GEOMBase_Skeleton.cxx index 34538ae90..1fed4e13b 100644 --- a/src/GEOMBase/GEOMBase_Skeleton.cxx +++ b/src/GEOMBase/GEOMBase_Skeleton.cxx @@ -133,9 +133,10 @@ void GEOMBase_Skeleton::initSpinBox( QDoubleSpinBox* spinBox, double min, double max, double step, int decimals ) { + spinBox->setDecimals( decimals ); // it's necessary to set decimals before the range setting, + // by default Qt rounds boundaries to 2 decimals at setRange spinBox->setRange( min, max ); spinBox->setSingleStep( step ); - spinBox->setDecimals( decimals ); } //=================================================================================