avoid setting negative size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,6 +172,7 @@ public:
|
|||||||
#else
|
#else
|
||||||
w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||||
#endif
|
#endif
|
||||||
|
if (w < 0) w = 0;
|
||||||
SetColumnWidth(0, w);
|
SetColumnWidth(0, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user