Skip to content
Browse files
Fixed a potential bug in case someone calls QgsMapCanvas::setOverview…

git-svn-id: 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.
@@ -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)));

0 comments on commit 8c744fe

Please sign in to comment.