]> git.saurik.com Git - wxWidgets.git/commitdiff
needed a check for wxUSE_VALIDATORS in the wxListCtrl::Create proc when calling the...
authorDavid Webster <Dave.Webster@bhmi.com>
Tue, 4 Jan 2000 15:14:09 +0000 (15:14 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Tue, 4 Jan 2000 15:14:09 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 8558840d6aa3eb7b33ca30c810faade574139019..f70262c82d2a031b49f9cc769c0520ae9f37e915 100644 (file)
@@ -2676,8 +2676,9 @@ wxListCtrl::~wxListCtrl()
 
 bool wxListCtrl::Create( wxWindow *parent, wxWindowID id,
       const wxPoint &pos, const wxSize &size,
+      long style, 
 #if wxUSE_VALIDATORS
-      long style, const wxValidator &validator,
+      const wxValidator &validator,
 #endif
       const wxString &name )
 {
@@ -2704,7 +2705,15 @@ bool wxListCtrl::Create( wxWindow *parent, wxWindowID id,
 #pragma message enable codcauunr
 #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
     SetValidator( validator );