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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Apr 17 17:39:50 EDT 2011


Author: mhugent
Date: 2011-04-17 14:39:50 -0700 (Sun, 17 Apr 2011)
New Revision: 15753

Modified:
   trunk/qgis/src/core/composer/qgscomposerlegend.cpp
Log:
Change default setting for layer space in legend

Modified: trunk/qgis/src/core/composer/qgscomposerlegend.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposerlegend.cpp	2011-04-17 17:30:08 UTC (rev 15752)
+++ trunk/qgis/src/core/composer/qgscomposerlegend.cpp	2011-04-17 21:39:50 UTC (rev 15753)
@@ -31,7 +31,7 @@
     : QgsComposerItem( composition )
     , mTitle( tr( "Legend" ) )
     , mBoxSpace( 2 )
-    , mLayerSpace( 3 )
+    , mLayerSpace( 2 )
     , mSymbolSpace( 2 )
     , mIconLabelSpace( 2 )
 {
@@ -217,7 +217,7 @@
   else //layer title omited
   {
     //symbol space will be added before the item later
-    currentYCoord += (mLayerSpace - mSymbolSpace);
+    currentYCoord += ( mLayerSpace - mSymbolSpace );
   }
 
   //and child items



More information about the QGIS-commit mailing list