]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
more backwards compatible kbd handling in wxScrolledWindow
[wxWidgets.git] / src / msw / listbox.cpp
index 3b42780fcb8d738636e758bb12f3aeba9cc2bc30..128111853e8d173a71dfe3578d3a7fbb462c2f2f 100644 (file)
@@ -138,7 +138,9 @@ bool wxListBox::Create(wxWindow *parent,
     m_selected = 0;
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
     if (parent)
         parent->AddChild(this);