]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for !wxUSE_VALIDATORS
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 21 Dec 2006 18:24:27 +0000 (18:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 21 Dec 2006 18:24:27 +0000 (18:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/htmllbox.cpp

index 6173b2ef2d4bffcbbb42ec765a7c3f356a000e90..c7c03d62373deb14131a3638fa91a3d1b6b61c77 100644 (file)
@@ -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;