Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Jul 4, 2009
1 parent 5b97d98 commit 3067cd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/main.cpp
Expand Up @@ -64,6 +64,7 @@ typedef SInt32 SRefCon;
#endif

#include "qgisapp.h"
#include "qgsmapcanvas.h"
#include "qgsapplication.h"
#include <qgsconfig.h>
#include <qgssvnversion.h>
Expand Down Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 3067cd3

Please sign in to comment.