git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16796
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
wxFormatConverter(const wxChar *format);
public:
wxFormatConverter(const wxChar *format);
- operator const wxChar *() const { return m_nCopied ? m_fmtOrig : m_fmt.c_str(); }
+ // notice that we only translated the string if m_fmtOrig == NULL (as set
+ // by CopyAllBefore()), otherwise we should simply use the original format
+ operator const wxChar *() const
+ { return m_fmtOrig ? m_fmtOrig : m_fmt.c_str(); }
private:
// copy another character to the translated format: this function does the
private:
// copy another character to the translated format: this function does the
- // we're translating, d copy
+ // we're translating, do copy