]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/wxbhistorytextctrl.cpp
Add version strings
[bacula/bacula] / bacula / src / wx-console / wxbhistorytextctrl.cpp
index eb5120ef4c06e296e6e74a7b8beade2aa5437db3..25e05a6e707eb29c7a7fac3cdf976fc568a61c69 100644 (file)
@@ -4,6 +4,7 @@
  *
  *    Nicolas Boichat, July 2004
  *
+ *    Version $Id$
  */
 /*
    Copyright (C) 2004 Kern Sibbald and John Walker
@@ -50,7 +51,7 @@ void wxbHistoryTextCtrl::HistoryAdd(wxString cmd) {
 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--;
@@ -59,7 +60,7 @@ void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
       }
    }
    else if (event.m_keyCode == WXK_DOWN) {
-      if (index < (history.Count()-1)) {
+      if (index < ((int)history.Count()-1)) {
          index++;
          SetValue(history[index]);
          SetInsertionPointEnd();
@@ -69,5 +70,3 @@ void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
       event.Skip();
    }
 }
-
-