diff --git a/include/wx/bmpbndl.h b/include/wx/bmpbndl.h index 6609e649a0..e55ba08f44 100644 --- a/include/wx/bmpbndl.h +++ b/include/wx/bmpbndl.h @@ -149,12 +149,7 @@ wxBitmapBundle wxBitmapBundle::FromBitmaps(const wxBitmap& bitmap1, /* static */ inline wxBitmapBundle wxBitmapBundle::FromBitmap(const wxBitmap& bitmap) { - if ( !bitmap.IsOk() ) - return wxBitmapBundle(); - - wxVector bitmaps; - bitmaps.push_back(bitmap); - return FromBitmaps(bitmaps); + return wxBitmapBundle(bitmap); } /* static */ inline