[QGIS Commit] r11023 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Jul 4 16:53:03 EDT 2009


Author: mhugent
Date: 2009-07-04 16:53:03 -0400 (Sat, 04 Jul 2009)
New Revision: 11023

Modified:
   trunk/qgis/src/app/main.cpp
Log:
Fix for bug #1027, extent command line option does not appear to work

Modified: trunk/qgis/src/app/main.cpp
===================================================================
--- trunk/qgis/src/app/main.cpp	2009-07-04 20:34:16 UTC (rev 11022)
+++ trunk/qgis/src/app/main.cpp	2009-07-04 20:53:03 UTC (rev 11023)
@@ -64,6 +64,7 @@
 #endif
 
 #include "qgisapp.h"
+#include "qgsmapcanvas.h"
 #include "qgsapplication.h"
 #include <qgsconfig.h>
 #include <qgssvnversion.h>
@@ -653,6 +654,10 @@
       // set extent from parsed values
       QgsRectangle rect( coords[0], coords[1], coords[2], coords[3] );
       qgis->setExtent( rect );
+      if ( qgis->mapCanvas() )
+      {
+        qgis->mapCanvas()->refresh();
+      }
     }
   }
 



More information about the QGIS-commit mailing list