[QGIS Commit] r8667 - trunk/qgis/src/gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Jun 21 13:27:28 EDT 2008


Author: wonder
Date: 2008-06-21 13:27:28 -0400 (Sat, 21 Jun 2008)
New Revision: 8667

Modified:
   trunk/qgis/src/gui/qgsmapcanvas.cpp
Log:
Fixed a potential bug in case someone calls QgsMapCanvas::setOverview(NULL)


Modified: trunk/qgis/src/gui/qgsmapcanvas.cpp
===================================================================
--- trunk/qgis/src/gui/qgsmapcanvas.cpp	2008-06-21 15:35:32 UTC (rev 8666)
+++ trunk/qgis/src/gui/qgsmapcanvas.cpp	2008-06-21 17:27:28 UTC (rev 8667)
@@ -319,10 +319,10 @@
     // 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)));



More information about the QGIS-commit mailing list