From 9427c79e98270003953c517d32abcb132e6d8a9e Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 20 Sep 2010 06:03:09 +0000 Subject: [PATCH] 0020997: [CEA 420] Problem with VISU preferences --- src/Qtx/QtxPagePrefMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Qtx/QtxPagePrefMgr.cxx b/src/Qtx/QtxPagePrefMgr.cxx index 67cf63beb..a67e97a5e 100644 --- a/src/Qtx/QtxPagePrefMgr.cxx +++ b/src/Qtx/QtxPagePrefMgr.cxx @@ -3071,7 +3071,7 @@ void QtxPagePrefSpinItem::setPrecision( const QVariant& prec ) if ( QtxDoubleSpinBox* dsb = ::qobject_cast( control() ) ) { if ( prec.canConvert( QVariant::Int ) ) { - dsb->setDecimals( prec.toInt() ); + dsb->setDecimals( qAbs( prec.toInt() ) ); dsb->setPrecision( prec.toInt() ); } } -- 2.39.2