X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2828b3910f61459110584704eed70cc3aa2501b..6344162a81f74b3fbab0803405eebc0c0b83e797:/samples/richedit/wxlwindow.cpp diff --git a/samples/richedit/wxlwindow.cpp b/samples/richedit/wxlwindow.cpp index 1d5869b2a3..4383578c2c 100644 --- a/samples/richedit/wxlwindow.cpp +++ b/samples/richedit/wxlwindow.cpp @@ -18,7 +18,7 @@ # pragma implementation "wxlwindow.h" #endif -#include +#include "wx/wxprec.h" #ifdef __BORLANDC__ # pragma hdrstop @@ -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