From 5e2e26d45cf3ecc0cc851dddbbc478249f94b12f Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 30 Apr 2008 13:03:43 +0000 Subject: [PATCH] Fix for bug IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields of dialog boxes. --- src/Qtx/QtxDoubleSpinBox.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Qtx/QtxDoubleSpinBox.cxx b/src/Qtx/QtxDoubleSpinBox.cxx index 535fa4b96..53d7822f2 100644 --- a/src/Qtx/QtxDoubleSpinBox.cxx +++ b/src/Qtx/QtxDoubleSpinBox.cxx @@ -131,7 +131,7 @@ QString QtxDoubleSpinBox::textFromValue( double val ) const */ QString QtxDoubleSpinBox::removeTrailingZeroes( const QString& src ) const { - QString delim( "." ); + QString delim( QLocale().decimalPoint() ); int idx = src.lastIndexOf( delim ); if ( idx == -1 ) -- 2.39.2