]> git.saurik.com Git - wxWidgets.git/commit
Fix crash when drawing bitmaps with mask in wxGTK with GTK+ < 2.20.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Feb 2013 14:32:04 +0000 (14:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Feb 2013 14:32:04 +0000 (14:32 +0000)
commitc92374f0a26608b5b80e079d35da8936fc881bf1
tree07a070db26d934d2a9696a9a2f2caaf984c0eae1
parent4e5e421c78de12a560de3e6fd2bc74304df681b1
Fix crash when drawing bitmaps with mask in wxGTK with GTK+ < 2.20.

r73386 introduced a crash in wxGTK drawing code when using old GTK+ versions
by releasing the mask pixmap prematurely. Apparently GTK+ itself was fixed at
some time in 2.19.x time frame but work around the bug for the sake of older
GTK+ versions in wxGTK itself by simply releasing the pixmap at the end of
DoDrawBitmap(), as pre-r73386 code did.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/dcclient.cpp