[QGIS Commit] r11352 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Aug 12 05:57:36 EDT 2009
Author: homann
Date: 2009-08-12 05:57:36 -0400 (Wed, 12 Aug 2009)
New Revision: 11352
Modified:
trunk/qgis/src/app/qgscustomprojectiondialog.cpp
trunk/qgis/src/app/qgsmaptoolidentify.cpp
Log:
Fixed localized numbers
Modified: trunk/qgis/src/app/qgscustomprojectiondialog.cpp
===================================================================
--- trunk/qgis/src/app/qgscustomprojectiondialog.cpp 2009-08-12 07:43:37 UTC (rev 11351)
+++ trunk/qgis/src/app/qgscustomprojectiondialog.cpp 2009-08-12 09:57:36 UTC (rev 11352)
@@ -926,9 +926,9 @@
{
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 );
}
Modified: trunk/qgis/src/app/qgsmaptoolidentify.cpp
===================================================================
--- trunk/qgis/src/app/qgsmaptoolidentify.cpp 2009-08-12 07:43:37 UTC (rev 11351)
+++ trunk/qgis/src/app/qgsmaptoolidentify.cpp 2009-08-12 09:57:36 UTC (rev 11352)
@@ -351,13 +351,13 @@
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 @@
{
// 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 );
}
More information about the QGIS-commit
mailing list