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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Sep 5 10:39:43 EDT 2008


Author: mhugent
Date: 2008-09-05 10:39:43 -0400 (Fri, 05 Sep 2008)
New Revision: 9263

Modified:
   trunk/qgis/src/core/composer/qgscomposerlegend.cpp
Log:
Better automatic resize for legend box

Modified: trunk/qgis/src/core/composer/qgscomposerlegend.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposerlegend.cpp	2008-09-05 12:25:35 UTC (rev 9262)
+++ trunk/qgis/src/core/composer/qgscomposerlegend.cpp	2008-09-05 14:39:43 UTC (rev 9263)
@@ -270,8 +270,8 @@
     p->restore();
   }
 
-  currentXPosition += pointImage.width() / rasterScaleFactor;
-  symbolHeight = pointImage.height() / rasterScaleFactor;
+  currentXPosition += s->pointSize(); //pointImage.width() / rasterScaleFactor;
+  symbolHeight = s->pointSize(); //pointImage.height() / rasterScaleFactor;
 }
 
 void QgsComposerLegend::drawLineSymbol( QPainter* p, QgsSymbol* s, double currentYCoord, double& currentXPosition ) const



More information about the QGIS-commit mailing list