From: Julian Smart <julian@anthemion.co.uk>
Date: Mon, 25 Feb 2002 11:20:24 +0000 (+0000)
Subject: data_image -> mask_image, correcting some crashes in XPutImage
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/011c17487e7f537568d109cf02ffd230bbf1296c

data_image -> mask_image, correcting some crashes in XPutImage


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/x11/bitmap.cpp b/src/x11/bitmap.cpp
index ad2ae57169..646ad0cb1a 100644
--- a/src/x11/bitmap.cpp
+++ b/src/x11/bitmap.cpp
@@ -706,7 +706,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
         if (image.HasMask())
         {
             GC gc = XCreateGC( xdisplay, (Pixmap) GetMask()->GetBitmap(), 0, NULL );
-            XPutImage( xdisplay, (Pixmap) GetMask()->GetBitmap(), gc, data_image, 0, 0, 0, 0, width, height );
+            XPutImage( xdisplay, (Pixmap) GetMask()->GetBitmap(), gc, mask_image, 0, 0, 0, 0, width, height );
 
             XDestroyImage( mask_image );
             XFreeGC( xdisplay, gc );