X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23318a5358be74727fb62854f623da84a4545bcd..9b49405777342458dc1666001865eef7309b6c30:/src/generic/editlbox.cpp?ds=inline diff --git a/src/generic/editlbox.cpp b/src/generic/editlbox.cpp index 1e0dc8e738..204e28908a 100644 --- a/src/generic/editlbox.cpp +++ b/src/generic/editlbox.cpp @@ -172,6 +172,7 @@ public: #else w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X); #endif + if (w < 0) w = 0; SetColumnWidth(0, w); }