Skip to content
Permalink
Browse files

fix deprecated warnings: mapCanvas()->mapRenderer()->distanceArea()

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
stopa85
stopa85 committed Mar 16, 2011
1 parent 3b0f21f commit 178bb74eab675fd4ad69b5c3d0b243fc693e46e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmeasuretool.cpp
@@ -70,7 +70,7 @@ void QgsMeasureTool::activate()

// 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 ) )
{

0 comments on commit 178bb74

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