From 678d3dd2420395435caa88df52262ebb17a14b64 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 26 Aug 2002 20:58:56 +0000 Subject: [PATCH] Corrected wxFormatConverter for strings which need not get converted. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxchar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index a161262499..4da43cbd34 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -566,7 +566,7 @@ class wxFormatConverter public: wxFormatConverter(const wxChar *format); - operator const wxChar *() const { return m_fmt.c_str(); } + operator const wxChar *() const { return m_nCopied ? m_fmtOrig : m_fmt.c_str(); } private: // copy another character to the translated format: this function does the @@ -777,7 +777,7 @@ int wxPrintf( const wxChar *format, ... ) ATTRIBUTE_PRINTF_2 { va_list argptr; va_start(argptr, format); - + int ret = vwprintf( wxFormatConverter(format), argptr ); va_end(argptr); -- 2.50.0