From: Paul Cornett Date: Thu, 19 Feb 2009 07:37:57 +0000 (+0000) Subject: avoid setting negative size X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d9b22b06d3a40f7c1ae10b9712a26e005a40da64 avoid setting negative size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }