vcl/source/font/fontmetric.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 9517d5cea8068500fb8d826d22e62e6654c90484 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Jun 26 11:48:44 2020 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Jun 26 13:59:27 2020 +0200 Upcoming improved loplugin:elidestringvar: vcl Change-Id: I4ffe3cfd0ed9a45607e978df88ae230ec04a152b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97204 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx index 3b7a7ed09f7f..f1427dfadb98 100644 --- a/vcl/source/font/fontmetric.cxx +++ b/vcl/source/font/fontmetric.cxx @@ -269,9 +269,8 @@ void ImplFontMetricData::ImplInitFlags( const OutputDevice* pDev ) bool bCentered = true; if (MsLangId::isCJK(rFont.GetLanguage())) { - const OUString sFullstop( u'\x3001' ); // Fullwidth fullstop tools::Rectangle aRect; - pDev->GetTextBoundRect( aRect, sFullstop ); + pDev->GetTextBoundRect( aRect, u"\x3001" ); // Fullwidth fullstop const auto nH = rFont.GetFontSize().Height(); const auto nB = aRect.Left(); // Use 18.75% as a threshold to define a centered fullwidth fullstop. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits