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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Mar 31 05:18:51 EDT 2010


Author: mhugent
Date: 2010-03-31 05:18:37 -0400 (Wed, 31 Mar 2010)
New Revision: 13207

Modified:
   trunk/qgis/src/core/composer/qgscomposermap.cpp
Log:
no selection squares in print mode

Modified: trunk/qgis/src/core/composer/qgscomposermap.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposermap.cpp	2010-03-31 00:32:51 UTC (rev 13206)
+++ trunk/qgis/src/core/composer/qgscomposermap.cpp	2010-03-31 09:18:37 UTC (rev 13207)
@@ -1459,7 +1459,10 @@
 
   painter->scale( scaleFactor, scaleFactor );
 
+  //a little trick to let the item know that the paint request comes from the composer
+  item->setData( 0, "composer" );
   item->paint( painter, itemStyle, 0 );
+  item->setData( 0, "" );
   painter->restore();
 }
 



More information about the QGIS-commit mailing list