Skip to content
Permalink
Browse files
Fixed a potential bug in case someone calls QgsMapCanvas::setOverview…
…(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 8c744fe1a6fe92f559126ccb1dc8da318ead2e9a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmapcanvas.cpp
@@ -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.