vcl/win/gdi/salfont.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cbf5ec321baed1a95ddfdb385fdc5f52a5d13e61
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Apr 20 08:51:50 2018 +0200

    loplugin:cstylecast (clang-cl)
    
    Change-Id: Ica7c080e08d74443687069df42216e0f0c4f2153

diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index f9b9418ccb75..f6deaaf6b1e8 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -863,13 +863,13 @@ HFONT WinSalGraphics::ImplDoSetFont(FontSelectPattern 
const * i_pFont, float& o_
     }
     else if( -aLogFont.lfHeight >= +aLogFont.lfWidth )
     {
-        o_rFontScale = -aLogFont.lfHeight / (float)MAXFONTHEIGHT;
+        o_rFontScale = -aLogFont.lfHeight / float(MAXFONTHEIGHT);
         aLogFont.lfHeight = -MAXFONTHEIGHT;
         aLogFont.lfWidth = FRound( aLogFont.lfWidth / o_rFontScale );
     }
     else // #i95867# also limit font widths
     {
-        o_rFontScale = +aLogFont.lfWidth / (float)MAXFONTHEIGHT;
+        o_rFontScale = +aLogFont.lfWidth / float(MAXFONTHEIGHT);
         aLogFont.lfWidth = +MAXFONTHEIGHT;
         aLogFont.lfHeight = FRound( aLogFont.lfHeight / o_rFontScale );
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to