X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..f03b9d4585c6b087330598205d7e1de5ac10592b:/samples/richedit/wxlwindow.cpp diff --git a/samples/richedit/wxlwindow.cpp b/samples/richedit/wxlwindow.cpp index b8158f2e5b..4383578c2c 100644 --- a/samples/richedit/wxlwindow.cpp +++ b/samples/richedit/wxlwindow.cpp @@ -741,8 +741,11 @@ wxLayoutWindow::OnChar(wxKeyEvent& event) && m_WrapMargin > 0 && m_llist->GetCursorPos().x > m_WrapMargin && isspace(keyCode)) + { m_llist->WrapLine(m_WrapMargin); - m_llist->Insert((char)keyCode); + } + + m_llist->Insert((wxChar)keyCode); SetDirty(); } else