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:
@@ -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
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user