Skip to content

Commit

Permalink
Fixed a potential bug in case someone calls QgsMapCanvas::setOverview…
Browse files Browse the repository at this point in the history
…(NULL)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 21, 2008
1 parent 4a3d593 commit 0de7518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ void QgsMapCanvas::setOverview(QgsMapOverviewCanvas* overview)
// map overview is not owned by map canvas so don't delete it...
}

mMapOverview = overview;

if (overview)
{
mMapOverview = overview;

// connect to the map render to copy its projection settings
connect(mMapRender, SIGNAL(projectionsEnabled(bool)),
overview, SLOT(projectionsEnabled(bool)));
Expand Down

0 comments on commit 0de7518

Please sign in to comment.