]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields...
authormkr <mkr@opencascade.com>
Wed, 30 Apr 2008 13:03:43 +0000 (13:03 +0000)
committermkr <mkr@opencascade.com>
Wed, 30 Apr 2008 13:03:43 +0000 (13:03 +0000)
src/Qtx/QtxDoubleSpinBox.cxx

index 535fa4b96bbfdeb09b4f6221d3349d9318156c2e..53d7822f20d30dce20d68a9305618bfd32c28ed3 100644 (file)
@@ -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 )