*
* Nicolas Boichat, July 2004
*
+ * Version $Id$
*/
/*
Copyright (C) 2004 Kern Sibbald and John Walker
void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
if (event.m_keyCode == WXK_UP) {
if (index > 0) {
- if (index == (history.Count()-1)) {
+ if (index == ((int)history.Count()-1)) {
history[index] = GetValue();
}
index--;
}
}
else if (event.m_keyCode == WXK_DOWN) {
- if (index < (history.Count()-1)) {
+ if (index < ((int)history.Count()-1)) {
index++;
SetValue(history[index]);
SetInsertionPointEnd();
event.Skip();
}
}
-
-