]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/wxlwindow.cpp
Fix wxListCtrl background colour bug Part I
[wxWidgets.git] / samples / richedit / wxlwindow.cpp
index b8158f2e5b7d8e69fd6d81bba4742ff2fd683194..4383578c2cc3d3a1df89da3b241951a881a4f34e 100644 (file)
@@ -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