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

Tor Lillqvist tml at iki.fi
Tue Feb 19 00:31:46 PST 2013


 svtools/source/graphic/grfmgr2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6475609e882c16c7536bbfa502e2f8341abfea6e
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Feb 19 10:31:20 2013 +0200

    WaE: implicit conversion from 'double' to 'long' changes value from 0.5 to 0
    
    Change-Id: Ib927d2f59e8b37fbddf3d3ccc78b3986e28b7b29

diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 365a8b1..fd8679e 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -306,7 +306,7 @@ sal_Bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAt
             for ( x = 0; x < aUnrotatedWidth ; x++)
             {
                 pMapIX[x] = 0;
-                pMapFX[x] = 0.5;
+                pMapFX[x] = 0;
             }
             scaleByAveraging = true;
         }
@@ -344,7 +344,7 @@ sal_Bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAt
             for (y = 0; y < aUnrotatedHeight; ++y)
             {
                 pMapIY[y] = 0;
-                pMapFY[y] = 0.5;
+                pMapFY[y] = 0;
             }
             scaleByAveraging = true;
         }


More information about the Libreoffice-commits mailing list