Skip to content

Commit 0de7518

Browse files
author
wonder
committedJun 21, 2008
Fixed a potential bug in case someone calls QgsMapCanvas::setOverview(NULL)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8667 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ void QgsMapCanvas::setOverview(QgsMapOverviewCanvas* overview)
319319
// map overview is not owned by map canvas so don't delete it...
320320
}
321321

322+
mMapOverview = overview;
323+
322324
if (overview)
323325
{
324-
mMapOverview = overview;
325-
326326
// connect to the map render to copy its projection settings
327327
connect(mMapRender, SIGNAL(projectionsEnabled(bool)),
328328
overview, SLOT(projectionsEnabled(bool)));

0 commit comments

Comments
 (0)
Please sign in to comment.