Skip to content

Commit 5c97496

Browse files
author
mhugent
committed
Fix layer space if layer title element is removed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15242 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 268e43b commit 5c97496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/composer/qgscomposerlegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ void QgsComposerLegend::drawLayerItem( QPainter* p, QgsComposerLayerItem* layerI
200200
}
201201

202202
//Let the user omit the layer title item by having an empty layer title string
203+
currentYCoord += mLayerSpace;
203204
if ( !layerItem->text().isEmpty() )
204205
{
205-
currentYCoord += mLayerSpace;
206206
currentYCoord += fontAscentMillimeters( mLayerFont );
207207

208208
//draw layer Item

0 commit comments

Comments
 (0)