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.
This commit is contained in:
PB
2022-04-30 17:46:25 +02:00
parent 3f32bac284
commit 97e126624e

View File

@@ -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
}
// ----------------------------------------------------------