Fix IPAL18996(QT4 porting: crash creationg the fillet).

This commit is contained in:
akl 2008-06-07 07:58:06 +00:00
parent 9e28536d26
commit d6b1a6e8a4

View File

@ -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 );
}
//=================================================================================