[QGIS Commit] r8343 - branches/rendercontext-branch/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Apr 13 03:46:54 EDT 2008


Author: mhugent
Date: 2008-04-13 03:46:53 -0400 (Sun, 13 Apr 2008)
New Revision: 8343

Modified:
   branches/rendercontext-branch/src/app/composer/qgscomposermap.cpp
Log:
Fixed clip rectangle in rendercontext branch

Modified: branches/rendercontext-branch/src/app/composer/qgscomposermap.cpp
===================================================================
--- branches/rendercontext-branch/src/app/composer/qgscomposermap.cpp	2008-04-13 07:19:48 UTC (rev 8342)
+++ branches/rendercontext-branch/src/app/composer/qgscomposermap.cpp	2008-04-13 07:46:53 UTC (rev 8343)
@@ -261,6 +261,7 @@
     
     QRectF bRect = boundingRect();
     QSize theSize(bRect.width(), bRect.height());
+    painter->setClipRect (QRectF( 0, 0, QGraphicsRectItem::rect().width(), QGraphicsRectItem::rect().height() ));
     draw( painter, mExtent, theSize, 25.4); //scene coordinates seem to be in mm
   } 
 



More information about the QGIS-commit mailing list