X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0de7af40b81699af98095d782617b517d76699e..8c517ddd1a2dd7eee7f95eb9ac1783f4a2e6fd76:/src/generic/treectrl.cpp diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index 67fe811ede..944c984855 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -403,7 +403,9 @@ bool wxTreeCtrl::Create(wxWindow *parent, wxWindowID id, wxScrolledWindow::Create( parent, id, pos, size, style|wxHSCROLL|wxVSCROLL, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif SetBackgroundColour( *wxWHITE ); m_dottedPen = wxPen( *wxBLACK, 0, 0 );