From 97e126624eb52a59eaac5398093bb4e025682fc5 Mon Sep 17 00:00:00 2001 From: PB Date: Sat, 30 Apr 2022 17:46:25 +0200 Subject: [PATCH] Show error message wxSVGBitmapEmbedHandler::ProcessBitmap() Do not just silently fail in wxSVGBitmapEmbedHandler::ProcessBitmap() when wxUSE_BASE64=0, use wxFAIL_MEG() to show why it failed. --- src/common/dcsvg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 23eecc0b4c..ed06a766c9 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -438,8 +438,14 @@ wxSVGBitmapEmbedHandler::ProcessBitmap(const wxBitmap& bmp, wxUnusedVar(x); wxUnusedVar(y); wxUnusedVar(stream); + wxFAIL_MSG + ( + "Embedding bitmaps in SVG is not available because " + "wxWidgets was built with wxUSE_BASE64 set to 0." + ); + return false; -#endif //wxUSE_BASE64 +#endif // wxUSE_BASE64 } // ----------------------------------------------------------