Assert is there is no wxMessageOutput
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
90a1a975d4
commit
0cf8b31be5
@ -846,6 +846,7 @@ int wxCmdLineParser::Parse(bool showUsage)
|
||||
{
|
||||
wxString usage;
|
||||
wxMessageOutput* msgOut = wxMessageOutput::Get();
|
||||
wxASSERT(msgOut);
|
||||
if ( showUsage ) usage = GetUsageString();
|
||||
if ( msgOut )
|
||||
msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );
|
||||
|
Loading…
Reference in New Issue
Block a user