respect the encoding of the text style and not only the global control font encoding when inserting the text in the control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-08-23 13:33:04 +00:00
parent 7581272214
commit 0d91b2342a
2 changed files with 42 additions and 3 deletions

View File

@@ -191,6 +191,13 @@ private:
// change the font for everything in this control
void ChangeFontGlobally();
// get the encoding which is used in this control: this looks at our font
// and default style but not the current style (i.e. the style for the
// current position); returns wxFONTENCODING_SYSTEM if we have no specific
// encoding
wxFontEncoding GetTextEncoding() const;
GtkWidget *m_text;
bool m_modified:1;