[QGIS Commit] r9300 - trunk/qgis/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Sep 11 10:27:04 EDT 2008


Author: mhugent
Date: 2008-09-11 10:27:04 -0400 (Thu, 11 Sep 2008)
New Revision: 9300

Modified:
   trunk/qgis/src/app/composer/qgscomposermapwidget.cpp
Log:
Show more precise numbers for composer map extent

Modified: trunk/qgis/src/app/composer/qgscomposermapwidget.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposermapwidget.cpp	2008-09-11 12:44:47 UTC (rev 9299)
+++ trunk/qgis/src/app/composer/qgscomposermapwidget.cpp	2008-09-11 14:27:04 UTC (rev 9300)
@@ -230,10 +230,10 @@
 
     //composer map extent
     QgsRect composerMapExtent = mComposerMap->extent();
-    mXMinLineEdit->setText( QString::number( composerMapExtent.xMin() ) );
-    mXMaxLineEdit->setText( QString::number( composerMapExtent.xMax() ) );
-    mYMinLineEdit->setText( QString::number( composerMapExtent.yMin() ) );
-    mYMaxLineEdit->setText( QString::number( composerMapExtent.yMax() ) );
+    mXMinLineEdit->setText( QString::number( composerMapExtent.xMin(), 'f', 3));
+    mXMaxLineEdit->setText( QString::number( composerMapExtent.xMax(), 'f', 3));
+    mYMinLineEdit->setText( QString::number( composerMapExtent.yMin(), 'f', 3));
+    mYMaxLineEdit->setText( QString::number( composerMapExtent.yMax(), 'f', 3));
   }
 }
 



More information about the QGIS-commit mailing list