From: David Webster Date: Tue, 4 Jan 2000 15:14:09 +0000 (+0000) Subject: needed a check for wxUSE_VALIDATORS in the wxListCtrl::Create proc when calling the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/98959adb03adc0ca87db881e64df947af11ec588?hp=1696c17801e10ea87246508ff7da37aa2f6d79ff needed a check for wxUSE_VALIDATORS in the wxListCtrl::Create proc when calling the parent class, wxControl::Create git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 8558840d6a..f70262c82d 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2676,8 +2676,9 @@ wxListCtrl::~wxListCtrl() bool wxListCtrl::Create( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, + long style, #if wxUSE_VALIDATORS - long style, const wxValidator &validator, + const wxValidator &validator, #endif const wxString &name ) { @@ -2704,7 +2705,15 @@ bool wxListCtrl::Create( wxWindow *parent, wxWindowID id, #pragma message enable codcauunr #endif - bool ret = wxControl::Create( parent, id, pos, size, s, name ); + bool ret = wxControl::Create( parent, + id, + pos, + size, + s, +#if wxUSE_VALIDATORS + validator, +#endif + name ); #if wxUSE_VALIDATORS SetValidator( validator );