Skip to content

Commit 70bdbfb

Browse files
committed
Fix for considering layer title length in composer legend
1 parent 4b03014 commit 70bdbfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/composer/qgscomposerlegend.cpp

+1-1
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)