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

ekuiitr jhaekansh80 at gmail.com
Tue Dec 5 15:04:48 UTC 2017


 editeng/source/items/svxfont.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c7d3440fed86c7ef986cdaf57dfe2017325ff190
Author: ekuiitr <jhaekansh80 at gmail.com>
Date:   Mon Dec 4 00:58:09 2017 +0530

    tdf#96505 removed "L" literal
    
    Change-Id: Ie12d65d0a8aaff3ede099e0301cafbc41ebdc2c6
    Reviewed-on: https://gerrit.libreoffice.org/45736
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mark Hung <marklh9 at gmail.com>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx
index 9714006eda2c..1895536c090d 100644
--- a/editeng/source/items/svxfont.cxx
+++ b/editeng/source/items/svxfont.cxx
@@ -322,8 +322,8 @@ void SvxFont::SetPhysFont( OutputDevice *pOut ) const
     {
         Font aNewFont( *this );
         Size aSize( aNewFont.GetFontSize() );
-        aNewFont.SetFontSize( Size( aSize.Width() * nPropr / 100L,
-                                    aSize.Height() * nPropr / 100L ) );
+        aNewFont.SetFontSize( Size( aSize.Width() * nPropr / 100,
+                                    aSize.Height() * nPropr / 100 ) );
         if ( !rCurrentFont.IsSameInstance( aNewFont ) )
             pOut->SetFont( aNewFont );
     }
@@ -516,7 +516,7 @@ void SvxFont::DrawPrev( OutputDevice *pOut, Printer* pPrinter,
         else
             nTmpEsc = nEsc;
         Size aSize = GetFontSize();
-        aPos.Y() -= ( nTmpEsc * aSize.Height() ) / 100L;
+        aPos.Y() -= ( nTmpEsc * aSize.Height() ) / 100;
     }
     Font aOldFont( ChgPhysFont( pOut ) );
     Font aOldPrnFont( ChgPhysFont( pPrinter ) );


More information about the Libreoffice-commits mailing list