incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1399148 - /incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx
Date Wed, 17 Oct 2012 08:28:48 GMT
Author: alg
Date: Wed Oct 17 08:28:48 2012
New Revision: 1399148

URL: http://svn.apache.org/viewvc?rev=1399148&view=rev
Log:
Made conversion from BitmapColor to Color more explicit by using operator Color()

Modified:
    incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx

Modified: incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx?rev=1399148&r1=1399147&r2=1399148&view=diff
==============================================================================
--- incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx (original)
+++ incubator/ooo/trunk/main/drawinglayer/source/texture/texture3d.cxx Wed Oct 17 08:28:48
2012
@@ -132,9 +132,9 @@ namespace drawinglayer
                 }
                 case TRANSPARENT_COLOR:
                 {
-                    const Color aColor(mpReadBitmap->GetColor(rY, rX));
+                    const BitmapColor aBitmapColor(mpReadBitmap->GetColor(rY, rX));
 
-                    if(maBitmapEx.GetTransparentColor() == aColor)
+                    if(maBitmapEx.GetTransparentColor() == Color(aBitmapColor))
                     {
                         return 255;
                     }



Mime
View raw message