diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index da63e4ba0c..f79bd0cbb8 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -624,7 +624,7 @@ void wxPrintfConvSpec::ReplaceAsteriskWith(int width) // find the first * in our flag buffer char *pwidth = strchr(m_szFlags, '*'); - wxASSERT(pwidth); + wxCHECK_RET(pwidth, _T("field width must be specified")); // save what follows the * (the +1 is to skip the asterisk itself!) strcpy(temp, pwidth+1);