Skip to content
Permalink
Browse files

Fix multiline overlap - Fix for #4454

  • Loading branch information
NathanW2 committed Oct 30, 2011
1 parent f5bf2b4 commit a739750e456c8d5387798b770aad65f7d0728364
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/core/qgspallabeling.cpp
@@ -434,10 +434,11 @@ void QgsPalLayerSettings::calculateLabelSize( const QFontMetricsF* fm, QString t
{
text.append( ">" );
}
QRectF labelRect = fm->boundingRect( text );

double w, h;
if ( !multiLineLabels )
{
QRectF labelRect = fm->boundingRect( text );
w = labelRect.width() / rasterCompressFactor;
h = labelRect.height() / rasterCompressFactor;
}
@@ -452,9 +453,9 @@ void QgsPalLayerSettings::calculateLabelSize( const QFontMetricsF* fm, QString t
if ( width > w )
{
w = width;
}
w /= rasterCompressFactor;
}
}
w /= rasterCompressFactor;
}
QgsPoint ptSize = xform->toMapCoordinatesF( w, h );

0 comments on commit a739750

Please sign in to comment.
You can’t perform that action at this time.