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

Michael Stahl mstahl at redhat.com
Mon Feb 18 13:00:55 PST 2013


 svtools/source/graphic/grfmgr2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 995494ec27a5815f8d85974c1ba525f4b4b4250b
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Feb 18 21:55:47 2013 +0100

    ImplCreateRotatedScaled: fix wrong usage of 'x' instead of 'y'
    
    introduced with c4a084e6b87e7c6cdf4a2574070b0523206bbefe
    
    Change-Id: I75de86db107c8ddcae55903f23cf907c3280c9f5

diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index dea3afb..365a8b1 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -341,7 +341,7 @@ sal_Bool ImplCreateRotatedScaled( const BitmapEx& rBmpEx, const GraphicAttr& rAt
         if(aBitmapHeight == 1)
         {
             fRevScaleY = 1.0 / (double)( aUnrotatedHeight);
-            for ( y = 0; x < aUnrotatedHeight ; y++)
+            for (y = 0; y < aUnrotatedHeight; ++y)
             {
                 pMapIY[y] = 0;
                 pMapFY[y] = 0.5;


More information about the Libreoffice-commits mailing list