unit test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32940
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Parse(memText, true /* local */);
SetRootPath();
Parse(memText, true /* local */);
SetRootPath();
}
#endif // wxUSE_STREAMS
}
#endif // wxUSE_STREAMS
{
LineListAppend(strLine);
{
LineListAppend(strLine);
- // let the root group have it start line as well
+ // let the root group have its start line as well
if ( !n )
{
m_pCurrentGroup->SetLine(m_linesTail);
if ( !n )
{
m_pCurrentGroup->SetLine(m_linesTail);
else
pNext->SetPrev(pPrev);
else
pNext->SetPrev(pPrev);
+ if ( m_pRootGroup->GetGroupLine() == pLine )
+ m_pRootGroup->SetLine(m_linesHead);
+
wxLogTrace( FILECONF_TRACE_MASK,
_T(" head: %s"),
((m_linesHead) ? m_linesHead->Text().c_str() : wxEmptyString) );
wxLogTrace( FILECONF_TRACE_MASK,
_T(" head: %s"),
((m_linesHead) ? m_linesHead->Text().c_str() : wxEmptyString) );
void wxFileConfigGroup::SetLine(wxFileConfigLineList *pLine)
{
void wxFileConfigGroup::SetLine(wxFileConfigLineList *pLine)
{
- wxASSERT( m_pLine == 0 ); // shouldn't be called twice
+ // shouldn't be called twice unless we are resetting the line
+ wxASSERT( m_pLine == 0 || pLine == 0 );