[Libreoffice-commits] core.git: vcl/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 26 12:00:07 UTC 2020


 vcl/source/font/fontmetric.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 9517d5cea8068500fb8d826d22e62e6654c90484
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 26 11:48:44 2020 +0200
Commit:     Stephan Bergmann <sbergman at 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 <sbergman at 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.


More information about the Libreoffice-commits mailing list