Skip to content
Permalink
Browse files

Fix for bug #1027, extent command line option does not appear to work

git-svn-id: http://svn.osgeo.org/qgis/trunk@11023 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 4, 2009
1 parent 5b97d98 commit 3067cd38c5bde780ec15a1b5e894e9e6560509f5
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/main.cpp
@@ -64,6 +64,7 @@ typedef SInt32 SRefCon;
#endif

#include "qgisapp.h"
#include "qgsmapcanvas.h"
#include "qgsapplication.h"
#include <qgsconfig.h>
#include <qgssvnversion.h>
@@ -653,6 +654,10 @@ int main( int argc, char *argv[] )
// set extent from parsed values
QgsRectangle rect( coords[0], coords[1], coords[2], coords[3] );
qgis->setExtent( rect );
if ( qgis->mapCanvas() )
{
qgis->mapCanvas()->refresh();
}
}
}

0 comments on commit 3067cd3

Please sign in to comment.
You can’t perform that action at this time.