openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1498913 - /openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx
Date Tue, 02 Jul 2013 12:56:06 GMT
Author: alg
Date: Tue Jul  2 12:56:06 2013
New Revision: 1498913

URL: http://svn.apache.org/r1498913
Log:
corrected some dumb self-assignments found by CovertyScan, thanks for detection

Modified:
    openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx

Modified: openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx?rev=1498913&r1=1498912&r2=1498913&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx (original)
+++ openoffice/trunk/main/vcl/source/gdi/bitmapex.cxx Tue Jul  2 12:56:06 2013
@@ -1244,20 +1244,20 @@ BitmapEx VCL_DLLPUBLIC createBlendFrame(
 
     if(aLastSize == rSize
         && nLastAlpha == nAlpha
-        && aLastColorTopLeft == aLastColorTopLeft
-        && aLastColorTopRight == aLastColorTopRight
-        && aLastColorBottomRight == aLastColorBottomRight
-        && aLastColorBottomLeft == aLastColorBottomLeft)
+        && aLastColorTopLeft == aColorTopLeft
+        && aLastColorTopRight == aColorTopRight
+        && aLastColorBottomRight == aColorBottomRight
+        && aLastColorBottomLeft == aColorBottomLeft)
     {
         return aLastResult;
     }
 
     aLastSize = rSize;
     nLastAlpha = nAlpha;
-    aLastColorTopLeft = aLastColorTopLeft;
-    aLastColorTopRight = aLastColorTopRight;
-    aLastColorBottomRight = aLastColorBottomRight;
-    aLastColorBottomLeft = aLastColorBottomLeft;
+    aLastColorTopLeft = aColorTopLeft;
+    aLastColorTopRight = aColorTopRight;
+    aLastColorBottomRight = aColorBottomRight;
+    aLastColorBottomLeft = aColorBottomLeft;
     aLastResult.Clear();
 
     const long nW(rSize.Width());



Mime
View raw message