Skip to content

Commit

Permalink
fix deprecated warnings: mapCanvas()->mapRenderer()->distanceArea()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
stopa85 committed Mar 16, 2011
1 parent 3b0f21f commit 178bb74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmeasuretool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
{
Expand Down

0 comments on commit 178bb74

Please sign in to comment.