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/qgis@8667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 21, 2008
1 parent 4a3d593 commit 0de75182aab760113f7154d5d63c9ca44bc0a5e2
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 0de7518

Please sign in to comment.