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
This commit is contained in:
David Webster 2000-01-04 15:14:09 +00:00
parent 1696c17801
commit 98959adb03

View File

@ -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 );