Fixed a bug in transparency detection.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 28 Oct 2007 16:19:04 +0000 (16:19 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 28 Oct 2007 16:19:04 +0000 (16:19 +0000)
git-svn-id: http://svn.voria.com/code@993 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_magickpp/trgt_magickpp.cpp

index a8b1bc0..7ddaee9 100644 (file)
@@ -203,7 +203,7 @@ magickpp_trgt::end_scanline()
 
        if (!transparent)
                for (int i = 0; i < width; i++)
-                       if (buffer[i*4 + 3] < 128)
+                       if (buffer_pointer[i*4 + 3] < 128)
                        {
                                transparent = true;
                                break;