Skip to content

Commit a4ca521

Browse files
author
stopa85
committed
fix deprecated warnings: mapCanvas()->mapRenderer()->distanceArea()
git-svn-id: http://svn.osgeo.org/qgis/trunk@15510 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 62bcbd6 commit a4ca521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsmeasuretool.cpp

+1-1
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)