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:
@@ -846,6 +846,7 @@ int wxCmdLineParser::Parse(bool showUsage)
|
|||||||
{
|
{
|
||||||
wxString usage;
|
wxString usage;
|
||||||
wxMessageOutput* msgOut = wxMessageOutput::Get();
|
wxMessageOutput* msgOut = wxMessageOutput::Get();
|
||||||
|
wxASSERT(msgOut);
|
||||||
if ( showUsage ) usage = GetUsageString();
|
if ( showUsage ) usage = GetUsageString();
|
||||||
if ( msgOut )
|
if ( msgOut )
|
||||||
msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );
|
msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );
|
||||||
|
Reference in New Issue
Block a user