]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/advprops.cpp
build fixes for wxUSE_VALIDATORS==0
[wxWidgets.git] / src / propgrid / advprops.cpp
index c4444d6de3ed96e98a10c49e2de20ea3ab39aaf0..bab9d937e47b41bef2d36cb3104a611237a7748e 100644 (file)
@@ -276,11 +276,12 @@ wxPGWindowList wxPGSpinCtrlEditor::CreateControls( wxPropertyGrid* propgrid, wxP
     wnd2->SetRange( INT_MIN, INT_MAX );
     wnd2->SetValue( 0 );
 
+    wxWindow* wnd1 = wxPGTextCtrlEditor::CreateControls(propgrid, property, pos, tcSz).m_primary;
+#if wxUSE_VALIDATORS
     // Let's add validator to make sure only numbers can be entered
     wxTextValidator validator(wxFILTER_NUMERIC, &m_tempString);
-
-    wxTextCtrl* wnd1 = (wxTextCtrl*) wxPGTextCtrlEditor::CreateControls( propgrid, property, pos, tcSz ).m_primary;
     wnd1->SetValidator(validator);
+#endif
 
     return wxPGWindowList(wnd1, wnd2);
 }