X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c99cd3d8cf7038537947a8ae9fe2279190e5fdd..0aaa804e7019b8187e2d35dffba133b43af79533:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 4e44795799..c84e60de07 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -1351,8 +1351,11 @@ wxFileConfigGroup::~wxFileConfigGroup() void wxFileConfigGroup::SetLine(wxFileConfigLineList *pLine) { - // shouldn't be called twice unless we are resetting the line - wxASSERT( m_pLine == 0 || pLine == 0 ); + // for a normal (i.e. not root) group this method shouldn't be called twice + // unless we are resetting the line + wxASSERT_MSG( !m_pParent || !m_pLine || !pLine, + _T("changing line for a non-root group?") ); + m_pLine = pLine; }