Skip to content

Commit

Permalink
Fixed localized numbers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11352 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Aug 12, 2009
1 parent 7689cf4 commit 9f9bccf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -926,9 +926,9 @@ void QgsCustomProjectionDialog::on_pbnCalculate_clicked()
{
QString tmp;

tmp = tmp.setNum( northing, 'f', 4 );
tmp = tmp = QLocale::system().toString( northing, 'f', 4 );
projectedX->setText( tmp );
tmp = tmp.setNum( easthing, 'f', 4 );
tmp = tmp = QLocale::system().toString( easthing, 'f', 4 );
projectedY->setText( tmp );
}

Expand Down
12 changes: 6 additions & 6 deletions src/app/qgsmaptoolidentify.cpp
Expand Up @@ -351,13 +351,13 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
if ( f_it->geometry()->wkbType() == QGis::WKBLineString )
{
// Add the start and end points in as derived attributes
str.setNum( f_it->geometry()->asPolyline().first().x(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPolyline().first().x(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, tr( "firstX", "attributes get sorted; translation for lastX should be lexically larger than this one" ), str );
str.setNum( f_it->geometry()->asPolyline().first().y(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPolyline().first().y(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, tr( "firstY" ), str );
str.setNum( f_it->geometry()->asPolyline().last().x(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPolyline().last().x(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, tr( "lastX", "attributes get sorted; translation for firstX should be lexically smaller than this one" ), str );
str.setNum( f_it->geometry()->asPolyline().last().y(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPolyline().last().y(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, tr( "lastY" ), str );
}
}
Expand All @@ -371,9 +371,9 @@ void QgsMapToolIdentify::identifyVectorLayer( const QgsPoint& point )
{
// Include the x and y coordinates of the point as a derived attribute
QString str;
str.setNum( f_it->geometry()->asPoint().x(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPoint().x(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "X", str );
str.setNum( f_it->geometry()->asPoint().y(), 'g', 10 );
str = QLocale::system().toString( f_it->geometry()->asPoint().y(), 'g', 10 );
mResults->addDerivedAttribute( featureNode, "Y", str );
}

Expand Down

0 comments on commit 9f9bccf

Please sign in to comment.