X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..743b426605478eeb31232c30e804e70ff493b1f2:/src/generic/editlbox.cpp diff --git a/src/generic/editlbox.cpp b/src/generic/editlbox.cpp index c1970a993a..204e28908a 100644 --- a/src/generic/editlbox.cpp +++ b/src/generic/editlbox.cpp @@ -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); }