Skip to content

Commit

Permalink
Fix rounding in composer item text width calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 30, 2013
1 parent b54b31e commit 695e3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposeritem.cpp
Expand Up @@ -995,7 +995,7 @@ void QgsComposerItem::drawArrowHead( QPainter* p, double x, double y, double ang
double QgsComposerItem::textWidthMillimeters( const QFont& font, const QString& text ) const
{
QFont metricsFont = scaledFontPixelSize( font );
QFontMetrics fontMetrics( metricsFont );
QFontMetricsF fontMetrics( metricsFont );
return ( fontMetrics.width( text ) / FONT_WORKAROUND_SCALE );
}

Expand Down

0 comments on commit 695e3e2

Please sign in to comment.