From d212f35a395eee6a3dc3980b118c2b854a770713 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Aug 2000 14:41:49 +0000 Subject: [PATCH] fixed logging in Usage() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdline.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 965d1143de..eadf625821 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -862,12 +862,13 @@ void wxCmdLineParser::Usage() } } + wxString fullmsg; if ( !!m_data->m_logo ) { - wxLogMessage(m_data->m_logo); + fullmsg << m_data->m_logo << _T('\n'); } - wxLogMessage(brief); + fullmsg << brief << _T('\n'); // now construct the detailed help message size_t len, lenMax = 0; @@ -889,7 +890,8 @@ void wxCmdLineParser::Usage() << _T('\n'); } - wxLogMessage(detailed); + fullmsg << detailed; + wxLogMessage(fullmsg); } // ----------------------------------------------------------------------------