]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected bitmap mask -> Image conversion
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 19 Feb 2005 05:29:05 +0000 (05:29 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 19 Feb 2005 05:29:05 +0000 (05:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/bitmap.cpp

index 9b145f644b5a3e45ec80407ac73caa4e5c7e03a8..02b7427a2c3ece2acd24d8b1c8e9e55cdc9c381c 100644 (file)
@@ -967,12 +967,12 @@ wxImage wxBitmap::ConvertToImage() const
                 {
                     if ( r == MASK_RED && g == MASK_GREEN && b == MASK_BLUE )
                         b = MASK_BLUE_REPLACEMENT ;
-                }
-                else
-                {
-                    r = MASK_RED ;
-                    g = MASK_GREEN ;
-                    b = MASK_BLUE ;
+                    else
+                    {
+                        r = MASK_RED ;
+                        g = MASK_GREEN ;
+                        b = MASK_BLUE ;
+                    }
                 }
             }
             else if ( hasAlpha )