From dec0c1b5b60d406a0905bc4ede137c474fc021df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Feb 2022 00:54:00 +0000 Subject: [PATCH] Don't return wxNullBitmap from XRC GetBitmapBundle() Return an empty bundle directly instead of relying on conversion from invalid bitmap. --- src/xrc/xmlres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 53dca74238..929b7a0002 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1953,7 +1953,7 @@ wxBitmapBundle wxXmlResourceHandlerImpl::GetBitmapBundle(const wxString& param, if ( !node ) { // this is not an error as bitmap parameter could be optional - return wxNullBitmap; + return wxBitmapBundle(); } /* If the bitmap is specified as stock item, query wxArtProvider for it: */