From d6b1a6e8a485a0eae2699890785d2abfa9e94ee9 Mon Sep 17 00:00:00 2001 From: akl Date: Sat, 7 Jun 2008 07:58:06 +0000 Subject: [PATCH] Fix IPAL18996(QT4 porting: crash creationg the fillet). --- src/GEOMBase/GEOMBase_Skeleton.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } //================================================================================= -- 2.39.2