Skip to content

Commit

Permalink
Use default (not system) locale
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 3, 2018
1 parent 1b4fa88 commit b086160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/fieldformatter/qgsrangefieldformatter.cpp
Expand Up @@ -54,7 +54,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
if ( ok )
{
// TODO: make the format configurable!
result = QLocale::system().toString( val, 'f', precision );
result = QLocale().toString( val, 'f', precision );
}
}
}
Expand All @@ -65,7 +65,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
double val( value.toInt( &ok ) );
if ( ok )
{
result = QLocale::system().toString( val, 'f', 0 );
result = QLocale().toString( val, 'f', 0 );
}
}
else if ( ( field.type() == QVariant::LongLong ) &&
Expand All @@ -75,7 +75,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
double val( value.toLongLong( &ok ) );
if ( ok )
{
result = QLocale::system().toString( val, 'f', 0 );
result = QLocale().toString( val, 'f', 0 );
}
}
else
Expand Down

0 comments on commit b086160

Please sign in to comment.