vcl/source/font/font.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e0f2256b90fb30a5a7858f93c168d9da12061e70 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Feb 18 08:39:45 2021 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Feb 18 10:31:33 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> diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index 67fc3e7bc633..0edcb913aaf7 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -389,7 +389,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