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@8667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 21, 2008
1 parent 41f62a8 commit 8c744fe
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 8c744fe

Please sign in to comment.