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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 6 15:04:10 UTC 2019


 vcl/inc/quartz/salgdi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9118d4d21bcbae6a9f2ca373b528939a60992903
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jun 6 10:06:08 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jun 6 17:03:03 2019 +0200

    CoreTextStyle::mbFauxBold shall presumably be bool
    
    ...it was added as float with eb5606511fac2a8ee1af7cc03c12d6c5b16f7c96
    "tdf#101854 Move to CommonSalLayout removed faux bold in macos", but that causes
    loplugin:implicitboolconversion warnings, and was probably just a typo.
    
    Change-Id: Ib35c5b001f0a77befa17e7bbb6447129e36a42ba
    Reviewed-on: https://gerrit.libreoffice.org/73590
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    Tested-by: Jenkins

diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h
index e3c2b8e7b553..cdc3aee155f8 100644
--- a/vcl/inc/quartz/salgdi.h
+++ b/vcl/inc/quartz/salgdi.h
@@ -97,7 +97,7 @@ public:
     /// text rotation in radian
     float mfFontRotation;
     /// faux bold - true, if font doesn't have proper bold variants
-    float mbFauxBold;
+    bool mbFauxBold;
 
 private:
     explicit CoreTextStyle(const PhysicalFontFace&, const FontSelectPattern&);


More information about the Libreoffice-commits mailing list