From 639a3b4a9382fa790d94fc0463c03575f831551d Mon Sep 17 00:00:00 2001 From: wonder Date: Sat, 11 Mar 2006 12:37:32 +0000 Subject: [PATCH] Fixed bug when --project option is passed. git-svn-id: http://svn.osgeo.org/qgis/trunk@5001 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/gui/qgisapp.cpp | 4 ---- src/gui/qgsmaprender.cpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/qgisapp.cpp b/src/gui/qgisapp.cpp index a3a503516747..3eaade58d771 100644 --- a/src/gui/qgisapp.cpp +++ b/src/gui/qgisapp.cpp @@ -3352,10 +3352,6 @@ void QgisApp::pan() QgsMapTool* tool = new QgsMapToolPan(mMapCanvas); tool->setAction(mActionPan); mMapCanvas->setMapTool(tool); - - // notify the project we've made a change - QgsProject::instance()->dirty(true); - } void QgisApp::zoomFull() diff --git a/src/gui/qgsmaprender.cpp b/src/gui/qgsmaprender.cpp index 0675436af30d..30f7099a6956 100644 --- a/src/gui/qgsmaprender.cpp +++ b/src/gui/qgsmaprender.cpp @@ -41,6 +41,7 @@ QgsMapRender::QgsMapRender() mMapUnits = QGis::METERS; mScaleCalculator->setMapUnits(mMapUnits); + mSize = QSize(0,0); } QgsMapRender::~QgsMapRender()