mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Qt4 porting. Fatal Error on Length value "0" (zero) in Hypothesis Length Near Vertex in 0D Algotithm.
This commit is contained in:
parent
f7e5178009
commit
a44e1f088c
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user