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

Tor Lillqvist tml at iki.fi
Sat Mar 16 02:29:05 PDT 2013


 svx/source/svdraw/svdfmtf.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 0c7a741d320bf02ca2957b85739ee636bffc695f
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sat Mar 16 11:28:20 2013 +0200

    WaE: comparison of integers of different signs
    
    Change-Id: I065c229be1e74c198e1d5bd8707898c14d7ee34e

diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx
index 583e54c..a453394 100644
--- a/svx/source/svdraw/svdfmtf.cxx
+++ b/svx/source/svdraw/svdfmtf.cxx
@@ -1513,9 +1513,9 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaFloatTransparentAction& rAct)
                         {
                             const double fOpNew(1.0 - fTransparence);
 
-                            for(sal_uInt32 y(0); y < pOld->Height(); y++)
+                            for(int y(0); y < pOld->Height(); y++)
                             {
-                                for(sal_uInt32 x(0); x < pOld->Width(); x++)
+                                for(int x(0); x < pOld->Width(); x++)
                                 {
                                     const double fOpOld(1.0 - (pOld->GetPixel(y, x).GetIndex() * fFactor));
                                     const sal_uInt8 aCol(basegfx::fround((1.0 - (fOpOld * fOpNew)) * 255.0));
@@ -1532,9 +1532,9 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaFloatTransparentAction& rAct)
                             {
                                 if(pOld->Width() == pNew->Width() && pOld->Height() == pNew->Height())
                                 {
-                                    for(sal_uInt32 y(0); y < pOld->Height(); y++)
+                                    for(int y(0); y < pOld->Height(); y++)
                                     {
-                                        for(sal_uInt32 x(0); x < pOld->Width(); x++)
+                                        for(int x(0); x < pOld->Width(); x++)
                                         {
                                             const double fOpOld(1.0 - (pOld->GetPixel(y, x).GetIndex() * fFactor));
                                             const double fOpNew(1.0 - (pNew->GetPixel(y, x).GetIndex() * fFactor));


More information about the Libreoffice-commits mailing list