]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/editlbox.cpp
honour wxSP_ARROW_KEYS in wxSpinCtrlGeneric and don't handle the arrows unless it...
[wxWidgets.git] / src / generic / editlbox.cpp
index c1970a993a37c1059e301978d7d403dcd27ed460..204e28908ad057a59090aba865a7c2070519a1c1 100644 (file)
@@ -30,7 +30,7 @@
 // implementation
 // ============================================================================
 
-const wxChar wxEditableListBoxNameStr[] = wxT("editableListBox");
+const char wxEditableListBoxNameStr[] = "editableListBox";
 
 static const char * eledit_xpm[] = {
 "16 16 3 1",
@@ -172,6 +172,7 @@ public:
 #else
          w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
 #endif
+         if (w < 0) w = 0;
          SetColumnWidth(0, w);
     }