]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/bitmap.cpp
Added wxDC::GetAsBitmap, and implemented wxWindowDC::DoGetAsBitmap on OS X, in order...
[wxWidgets.git] / src / gtk / bitmap.cpp
index d459bdbce717368ab18fdbc7b4f5ff8e1792b9a4..522e383b8995c0c81e53d733b6f91fde0928a3f8 100644 (file)
@@ -997,9 +997,6 @@ void wxBitmap::SetPixbuf(GdkPixbuf* pixbuf, int depth)
 
 void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep)
 {
-    // AllocExclusive should not be needed for this internal function
-    wxASSERT(m_refData->GetRefCount() == 1);
-
     if (keep == Pixmap && HasPixbuf())
     {
         g_object_unref (M_BMPDATA->m_pixbuf);