diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index 8c5bcd2a80..39206d2f38 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -237,7 +237,7 @@ bool wxBitmap::Create(int width, int height, int depth) pf = &gs_pixel_format_32; break; default: - wxASSERT_MSG( 0, wxT("invalid bitmap depth") ); + wxFAIL_MSG(wxT("invalid bitmap depth")); return false; }