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:
parent
1696c17801
commit
98959adb03
@ -2676,8 +2676,9 @@ wxListCtrl::~wxListCtrl()
|
|||||||
|
|
||||||
bool wxListCtrl::Create( wxWindow *parent, wxWindowID id,
|
bool wxListCtrl::Create( wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint &pos, const wxSize &size,
|
const wxPoint &pos, const wxSize &size,
|
||||||
|
long style,
|
||||||
#if wxUSE_VALIDATORS
|
#if wxUSE_VALIDATORS
|
||||||
long style, const wxValidator &validator,
|
const wxValidator &validator,
|
||||||
#endif
|
#endif
|
||||||
const wxString &name )
|
const wxString &name )
|
||||||
{
|
{
|
||||||
@ -2704,7 +2705,15 @@ bool wxListCtrl::Create( wxWindow *parent, wxWindowID id,
|
|||||||
#pragma message enable codcauunr
|
#pragma message enable codcauunr
|
||||||
#endif
|
#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
|
#if wxUSE_VALIDATORS
|
||||||
SetValidator( validator );
|
SetValidator( validator );
|
||||||
|
Loading…
Reference in New Issue
Block a user