[QGIS Commit] r10036 - trunk/qgis/src/core/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Jan 28 02:59:27 EST 2009
Author: mhugent
Date: 2009-01-28 02:59:27 -0500 (Wed, 28 Jan 2009)
New Revision: 10036
Modified:
trunk/qgis/src/core/composer/qgscomposermap.cpp
Log:
Don't waste time for caching the contents of composer map if the preview mode is rectangle
Modified: trunk/qgis/src/core/composer/qgscomposermap.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposermap.cpp 2009-01-27 23:38:46 UTC (rev 10035)
+++ trunk/qgis/src/core/composer/qgscomposermap.cpp 2009-01-28 07:59:27 UTC (rev 10036)
@@ -48,6 +48,7 @@
mComposition = composition;
mMapRenderer = mComposition->mapRenderer();
mId = mCurrentComposerId++;
+ mPreviewMode = QgsComposerMap::Rectangle;
// Cache
mCacheUpdated = false;
@@ -80,6 +81,7 @@
mComposition = composition;
mMapRenderer = mComposition->mapRenderer();
mId = mCurrentComposerId++;
+ mPreviewMode = QgsComposerMap::Rectangle;
setToolTip( tr( "Map %1" ).arg( mId ) );
QGraphicsRectItem::show();
}
@@ -370,7 +372,10 @@
mExtent = QgsRectangle( mExtent.xMinimum(), mExtent.yMinimum(), mExtent.xMaximum(), mExtent.yMinimum() + newHeight );
mCacheUpdated = false;
emit extentChanged();
- cache();
+ if(mPreviewMode != Rectangle)
+ {
+ cache();
+ }
update();
}
More information about the QGIS-commit
mailing list