Skip to content

Commit 178bb74

Browse files
author
stopa85
committedMar 16, 2011
fix deprecated warnings: mapCanvas()->mapRenderer()->distanceArea()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15510 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsmeasuretool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void QgsMeasureTool::activate()
7070

7171
// If we suspect that they have data that is projected, yet the
7272
// map CRS is set to a geographic one, warn them.
73-
if ( mCanvas->mapRenderer()->distanceArea()->geographic() &&
73+
if ( mCanvas->mapRenderer()->destinationCrs().geographicFlag() &&
7474
( mCanvas->extent().height() > 360 ||
7575
mCanvas->extent().width() > 720 ) )
7676
{

0 commit comments

Comments
 (0)
Please sign in to comment.