don't recompute nonbreakable space character every time a text fragment is added in ANSI build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-08-20 20:24:22 +00:00
parent 96d665d249
commit c782096417
2 changed files with 19 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ protected:
virtual void AddText(const wxString& txt);
private:
void DoAddText(wxChar *temp, int& templen, wxChar nbsp);
void DoAddText(wxChar *temp, int& templen);
bool m_tmpLastWasSpace;
wxChar *m_tmpStrBuf;
@@ -201,6 +201,7 @@ private:
// html font sizes and faces of fixed and proportional fonts
#if !wxUSE_UNICODE
wxChar m_nbsp;
wxFontEncoding m_InputEnc, m_OutputEnc;
// I/O font encodings
wxEncodingConverter *m_EncConv;