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:
@@ -570,7 +570,9 @@ bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#if wxUSE_VALIDATORS
|
||||||
SetValidator(validator);
|
SetValidator(validator);
|
||||||
|
#endif
|
||||||
for (int i=0; i<n; i++)
|
for (int i=0; i<n; i++)
|
||||||
Append(choices[i]);
|
Append(choices[i]);
|
||||||
|
|
||||||
@@ -588,7 +590,9 @@ bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
if (!wxHtmlListBox::Create(parent, id, pos, size, style, name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#if wxUSE_VALIDATORS
|
||||||
SetValidator(validator);
|
SetValidator(validator);
|
||||||
|
#endif
|
||||||
Append(choices);
|
Append(choices);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user