X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1b82138efe9aacda4e0ad7ce4b1551d624524c4..bae41ce1922f02b8af69b4fffbf3b6a2183f9ba7:/src/common/textcmn.cpp?ds=sidebyside diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 33796a5371..d45fbb7505 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -21,6 +21,8 @@ #endif #ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" #include "wx/textctrl.h" #endif // WX_PRECOMP @@ -44,6 +46,10 @@ wxTextCtrlBase::wxTextCtrlBase() { +#ifndef NO_TEXT_WINDOW_STREAM + if (allocate()) + setp(base(),ebuf()); +#endif // NO_TEXT_WINDOW_STREAM } // ---------------------------------------------------------------------------- @@ -142,7 +148,7 @@ wxTextCtrl& wxTextCtrlBase::operator<<(long i) return *TEXTCTRL(this); } -wxTextCtrl& wxTextCtrlBase::operator<<(const char c) +wxTextCtrl& wxTextCtrlBase::operator<<(const wxChar c) { return operator<<(wxString(c)); }