Skip to content
Permalink
Browse files

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

git-svn-id: http://svn.osgeo.org/qgis/trunk@15510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
stopa85
stopa85 committed Mar 16, 2011
1 parent 62bcbd6 commit a4ca521b0f60decca83688f70ac546e2f326ca8a
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 a4ca521

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