X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7ff06ad158d6c3c859eb3241ad6f5c038fef7f4..46405e36bf9962b251e77e5048e96bf6a54edb15:/src/generic/grideditors.cpp diff --git a/src/generic/grideditors.cpp b/src/generic/grideditors.cpp index d764a71e09..57f01972b3 100644 --- a/src/generic/grideditors.cpp +++ b/src/generic/grideditors.cpp @@ -355,7 +355,7 @@ bool wxGridCellEditor::IsAcceptedKey(wxKeyEvent& event) return false; #if wxUSE_UNICODE - if ( event.GetUnicodeKey() == WXK_NONE ) + if ( static_cast(event.GetUnicodeKey()) == WXK_NONE ) return false; #else if ( event.GetKeyCode() > WXK_START ) @@ -547,7 +547,7 @@ void wxGridCellTextEditor::StartingKey(wxKeyEvent& event) // a valid character, so not a whole lot of testing needs to be done. wxTextCtrl* tc = Text(); - wxChar ch; + int ch; bool isPrintable; @@ -558,7 +558,7 @@ void wxGridCellTextEditor::StartingKey(wxKeyEvent& event) else #endif // wxUSE_UNICODE { - ch = (wxChar)event.GetKeyCode(); + ch = event.GetKeyCode(); isPrintable = ch >= WXK_SPACE && ch < WXK_START; } @@ -579,7 +579,7 @@ void wxGridCellTextEditor::StartingKey(wxKeyEvent& event) default: if ( isPrintable ) - tc->WriteText(ch); + tc->WriteText(static_cast(ch)); break; } } @@ -1506,7 +1506,6 @@ void wxGridCellEnumEditor::BeginEdit(int row, int col, wxGrid* grid) } Combo()->SetSelection(m_index); - Combo()->SetInsertionPointEnd(); Combo()->SetFocus(); }