Unconditional assert means failure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
be437778be
commit
6a64f8d41d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user