fixed deleting entries at root level
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -565,8 +565,17 @@ void wxFileConfig::Parse(wxTextBuffer& buffer, bool bLocal)
|
||||
|
||||
// add the line to linked list
|
||||
if ( bLocal )
|
||||
{
|
||||
LineListAppend(strLine);
|
||||
|
||||
// let the root group have it start line as well
|
||||
if ( !n )
|
||||
{
|
||||
m_pCurrentGroup->SetLine(m_linesTail);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// skip leading spaces
|
||||
for ( pStart = strLine; wxIsspace(*pStart); pStart++ )
|
||||
;
|
||||
|
Reference in New Issue
Block a user