From f204026b42dd36af2716434232dd1937fab2465e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 10 May 2001 15:08:45 +0000 Subject: [PATCH] fixed fatal bug in wxBitmap::CreateFromXpm (the bitmap was added twice to wxTheBitmapsList) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/bitmap.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 79b21b8e87..4c21494fcb 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -294,9 +294,6 @@ bool wxBitmap::CreateFromXpm(const char **data) wxCHECK_MSG( img.Ok(), FALSE, wxT("invalid bitmap data") ) *this = wxBitmap(img); - - if ( wxTheBitmapList ) wxTheBitmapList->AddBitmap(this); - return TRUE; #else return FALSE;