X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1cc09bb6f0c0a75ab84ec147ba41f84d979766b..1d529ef7eed851db9d007821decb9639e4e7fc16:/contrib/src/xrc/xh_unkwn.cpp?ds=inline diff --git a/contrib/src/xrc/xh_unkwn.cpp b/contrib/src/xrc/xh_unkwn.cpp index 4ff1733125..cad645b68b 100644 --- a/contrib/src/xrc/xh_unkwn.cpp +++ b/contrib/src/xrc/xh_unkwn.cpp @@ -90,6 +90,9 @@ wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler() wxObject *wxUnknownWidgetXmlHandler::DoCreateResource() { + wxASSERT_MSG( m_instance == NULL, + _T("'unknown' controls can't be subclassed, use wxXmlResource::AttachUnknownControl") ); + wxPanel *panel = new wxUnknownControlContainer(m_parentAsWindow, GetName(), -1,