[QGIS Commit] r15510 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Mar 16 01:57:16 EDT 2011
Author: stopa85
Date: 2011-03-15 22:57:16 -0700 (Tue, 15 Mar 2011)
New Revision: 15510
Modified:
trunk/qgis/src/app/qgsmeasuretool.cpp
Log:
fix deprecated warnings: mapCanvas()->mapRenderer()->distanceArea()
Modified: trunk/qgis/src/app/qgsmeasuretool.cpp
===================================================================
--- trunk/qgis/src/app/qgsmeasuretool.cpp 2011-03-16 05:46:57 UTC (rev 15509)
+++ trunk/qgis/src/app/qgsmeasuretool.cpp 2011-03-16 05:57:16 UTC (rev 15510)
@@ -70,7 +70,7 @@
// If we suspect that they have data that is projected, yet the
// map CRS is set to a geographic one, warn them.
- if ( mCanvas->mapRenderer()->distanceArea()->geographic() &&
+ if ( mCanvas->mapRenderer()->destinationCrs().geographicFlag() &&
( mCanvas->extent().height() > 360 ||
mCanvas->extent().width() > 720 ) )
{
More information about the QGIS-commit
mailing list