Skip to content
Permalink
Browse files

Turn off layer caching for composer prints

git-svn-id: http://svn.osgeo.org/qgis/trunk@11852 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Oct 26, 2009
1 parent 32ceff3 commit 47be6dcbc65bca221db4ca7d58b6256921520146
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/core/composer/qgscomposermap.cpp
@@ -146,7 +146,15 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
//force composer map scale for scale dependent visibility
double bk_scale = theMapRenderer.scale();
theMapRenderer.setScale( scale() );

//layer caching (as QImages) cannot be done for composer prints
QSettings s;
bool bkLayerCaching = s.value( "/qgis/enable_render_caching", false ).toBool();
s.setValue( "/qgis/enable_render_caching", false );

theMapRenderer.render( painter );
s.setValue( "/qgis/enable_render_caching", bkLayerCaching );

theMapRenderer.setScale( bk_scale );
}

0 comments on commit 47be6dc

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