Skip to content
Permalink
Browse files

Fixed localized numbers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11352 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Aug 12, 2009
1 parent 3e388b5 commit f1e975e41e725bcae953f95eecdafe5739050a7c
Showing with 8 additions and 8 deletions.
  1. +2 −2 src/app/qgscustomprojectiondialog.cpp
  2. +6 −6 src/app/qgsmaptoolidentify.cpp
@@ -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 );
}

@@ -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 );
}
}
@@ -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 );
}

0 comments on commit f1e975e

Please sign in to comment.
You can’t perform that action at this time.