X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..95316a3f245a4baf3046e97222660bed986153ed:/src/gtk/dnd.cpp diff --git a/src/gtk/dnd.cpp b/src/gtk/dnd.cpp index acb68d6af2..4679fd0bbd 100644 --- a/src/gtk/dnd.cpp +++ b/src/gtk/dnd.cpp @@ -764,7 +764,7 @@ void wxDropSource::PrepareIcon( int action, GdkDragContext *context ) #ifndef __WXGTK3__ GdkBitmap *mask; if ( icon->GetMask() ) - mask = icon->GetMask()->GetBitmap(); + mask = *icon->GetMask(); else mask = NULL; @@ -796,7 +796,9 @@ void wxDropSource::PrepareIcon( int action, GdkDragContext *context ) cairo_pattern_t* pattern = cairo_get_source(cr); gdk_window_set_background_pattern(gtk_widget_get_window(m_iconWindow), pattern); cairo_destroy(cr); - cairo_surface_t* mask = icon->GetMask()->GetBitmap(); + cairo_surface_t* mask = NULL; + if (icon->GetMask()) + mask = *icon->GetMask(); if (mask) { cairo_region_t* region = gdk_cairo_region_create_from_surface(mask);