vcl/source/font/font.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 907e5fa4fe13efb26fc0dc3e5ead611da734daaa Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Feb 18 08:39:45 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Mar 10 15:29:03 2021 +0100 Fix an OUString construction ...introduced with 9d161857f1d4afcb772b477455797a2da0e47a9b "tdf#127471 correct EMF/WMF im/export for scaled font" Change-Id: I2b807e102ca7f71a61794f511dee302c7e509026 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111095 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> (cherry picked from commit e0f2256b90fb30a5a7858f93c168d9da12061e70) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112221 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index 4017a5347e75..45a2222b6ff4 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -388,7 +388,7 @@ tools::Long Font::GetOrCalculateAverageFontWidth() const aUnscaledFont.SetAverageFontWidth(0); pVirDev->SetFont(aUnscaledFont); const double fAverageFontWidth( - pVirDev->GetTextWidth(OUString(aArray.data())) / static_cast<double>(nSize)); + pVirDev->GetTextWidth(OUString(aArray.data(), nSize)) / static_cast<double>(nSize)); const_cast<Font*>(this)->mpImplFont->SetCalculatedAverageFontWidth(basegfx::fround(fAverageFontWidth)); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits