Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 7, 2020
1 parent 8efcb5c commit 8273483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoututils.cpp
Expand Up @@ -223,7 +223,7 @@ double QgsLayoutUtils::textWidthMM( const QFont &font, const QString &text )
QFont metricsFont = scaledFontPixelSize( font );
QFontMetricsF fontMetrics( metricsFont );
#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
return ( fontMetrics.width( text ).width() / FONT_WORKAROUND_SCALE );
return ( fontMetrics.width( text ) / FONT_WORKAROUND_SCALE );
#else
return ( fontMetrics.horizontalAdvance( text ) / FONT_WORKAROUND_SCALE );
#endif
Expand Down

0 comments on commit 8273483

Please sign in to comment.