compilation fix for !wxUSE_VALIDATORS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f1f5f16f78
commit
9a9b58229f
@ -570,7 +570,9 @@ bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id,
|
||||
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
||||
return false;
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
SetValidator(validator);
|
||||
#endif
|
||||
for (int i=0; i<n; i++)
|
||||
Append(choices[i]);
|
||||
|
||||
@ -588,7 +590,9 @@ bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id,
|
||||
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
||||
return false;
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
SetValidator(validator);
|
||||
#endif
|
||||
Append(choices);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user