mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 17:02:04 +05:00
Fix IPAL18996(QT4 porting: crash creationg the fillet).
This commit is contained in:
parent
9e28536d26
commit
d6b1a6e8a4
@ -133,9 +133,10 @@ void GEOMBase_Skeleton::initSpinBox( QDoubleSpinBox* spinBox,
|
|||||||
double min, double max,
|
double min, double max,
|
||||||
double step, int decimals )
|
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->setRange( min, max );
|
||||||
spinBox->setSingleStep( step );
|
spinBox->setSingleStep( step );
|
||||||
spinBox->setDecimals( decimals );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user