Skip to content

Commit 0a2e74e

Browse files
committedJul 13, 2011
Fix for considering layer title length in composer legend
1 parent 587ecf4 commit 0a2e74e

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
@@ -336,7 +336,7 @@ void QgsComposerLegend::drawLayerChildItems( QPainter* p, QStandardItem* layerIt
336336
textAlignCoord = qMax( currentXCoord, textAlignCoord );
337337
}
338338

339-
maxXCoord = textAlignCoord;
339+
maxXCoord = qMax( maxXCoord, textAlignCoord );
340340
for ( int i = 0; i < numChildren; ++i )
341341
{
342342
if ( p )

0 commit comments

Comments
 (0)
Please sign in to comment.