X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..892aeafc2a0212b4c3bebcaddd96a42cdd307afd:/contrib/src/xml/xh_listc.cpp diff --git a/contrib/src/xml/xh_listc.cpp b/contrib/src/xml/xh_listc.cpp index 332d9655f4..aa0372661a 100644 --- a/contrib/src/xml/xh_listc.cpp +++ b/contrib/src/xml/xh_listc.cpp @@ -19,6 +19,7 @@ #pragma hdrstop #endif +#include "wx/textctrl.h" #include "wx/xml/xh_listc.h" #include "wx/listctrl.h" @@ -28,7 +29,6 @@ wxListCtrlXmlHandler::wxListCtrlXmlHandler() { ADD_STYLE(wxLC_LIST); ADD_STYLE(wxLC_REPORT); - ADD_STYLE(wxLC_REPORT); ADD_STYLE(wxLC_ICON); ADD_STYLE(wxLC_SMALL_ICON); ADD_STYLE(wxLC_ALIGN_TOP); @@ -63,5 +63,5 @@ wxObject *wxListCtrlXmlHandler::DoCreateResource() bool wxListCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("listctrl"); + return IsOfClass(node, wxT("wxListCtrl")); }