Skip to content

Commit 70bdbfb

Browse files
committedJul 13, 2011
Fix for considering layer title length in composer legend

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
@@ -333,7 +333,7 @@ void QgsComposerLegend::drawLayerChildItems( QPainter* p, QStandardItem* layerIt
333333
textAlignCoord = qMax( currentXCoord, textAlignCoord );
334334
}
335335

336-
maxXCoord = textAlignCoord;
336+
maxXCoord = qMax( maxXCoord, textAlignCoord );
337337
for ( int i = 0; i < numChildren; ++i )
338338
{
339339
if ( p )

0 commit comments

Comments
 (0)
Please sign in to comment.