Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Oct 7, 2020
1 parent 8efcb5c commit 82734838c24ae2358a406e69572ecea54252f4f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layout/qgslayoututils.cpp
@@ -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

0 comments on commit 8273483

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