[QGIS Commit] r11852 - trunk/qgis/src/core/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Oct 26 12:25:23 EDT 2009


Author: mhugent
Date: 2009-10-26 12:25:22 -0400 (Mon, 26 Oct 2009)
New Revision: 11852

Modified:
   trunk/qgis/src/core/composer/qgscomposermap.cpp
Log:
Turn off layer caching for composer prints

Modified: trunk/qgis/src/core/composer/qgscomposermap.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposermap.cpp	2009-10-26 15:17:43 UTC (rev 11851)
+++ trunk/qgis/src/core/composer/qgscomposermap.cpp	2009-10-26 16:25:22 UTC (rev 11852)
@@ -146,7 +146,15 @@
   //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 );
 }
 



More information about the QGIS-commit mailing list