X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..667e2c55eab8820efc2e7dc06611724641e9bcf3:/samples/richedit/wxlwindow.cpp?ds=sidebyside 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