]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid setting negative size
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 07:37:57 +0000 (07:37 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 07:37:57 +0000 (07:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/editlbox.cpp

index 1e0dc8e73827dab1dcefeabcf454ed465381ce40..204e28908ad057a59090aba865a7c2070519a1c1 100644 (file)
@@ -172,6 +172,7 @@ public:
 #else
          w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
 #endif
 #else
          w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
 #endif
+         if (w < 0) w = 0;
          SetColumnWidth(0, w);
     }
 
          SetColumnWidth(0, w);
     }