X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23318a5358be74727fb62854f623da84a4545bcd..cf4ce62c26bcbd5a707e3054f611d0164617b012:/src/generic/editlbox.cpp 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); }