]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed deleting entries at root level
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Mar 2003 15:25:50 +0000 (15:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Mar 2003 15:25:50 +0000 (15:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/common/fileconf.cpp

index 6ec696493fed962ae4b882a18c3d4d6467dda2f8..2958c1de90dc3b0f8b57aa2639328387146e602b 100644 (file)
@@ -23,6 +23,7 @@ All:
 - bug in wxDateTime with timezones on systems with tm_gmtoff in struct tm fixed
 - added wx/math.h (John Labenski)
 - added Catalan translations (Pau Bosch i Crespo)
+- fixed bug with deleting entries at root level in wxFileConfig
 
 wxBase:
 
index 44a683f4070035393ca92a2b72c1a2f39b0da4c8..dfb2a735f821cd1f47d37d70f43b5e00e602d702 100644 (file)
@@ -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++ )
       ;