fix bug with not updating the last line correctly when a group was deleted and recreated (bug 1685312) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,6 +94,7 @@ Major new features in 2.8 release
|
|||||||
All (Unix):
|
All (Unix):
|
||||||
|
|
||||||
- Handle socket shutdown by the peer correctly in wxSocket (Tim Kosse)
|
- Handle socket shutdown by the peer correctly in wxSocket (Tim Kosse)
|
||||||
|
- Fix bug in wxFileConfig when recreating a group (Steven Van Ingelgem)
|
||||||
- Added wxString::char_str() and wchar_str() methods for forward
|
- Added wxString::char_str() and wchar_str() methods for forward
|
||||||
compatiblity with wxWidgets 3
|
compatiblity with wxWidgets 3
|
||||||
|
|
||||||
|
@@ -1773,7 +1773,7 @@ bool wxFileConfigGroup::DeleteSubgroup(wxFileConfigGroup *pGroup)
|
|||||||
|
|
||||||
m_pLastGroup = NULL;
|
m_pLastGroup = NULL;
|
||||||
for ( wxFileConfigLineList *pl = pLine->Prev();
|
for ( wxFileConfigLineList *pl = pLine->Prev();
|
||||||
pl && pl != m_pLine && !m_pLastGroup;
|
pl && !m_pLastGroup;
|
||||||
pl = pl->Prev() )
|
pl = pl->Prev() )
|
||||||
{
|
{
|
||||||
// does this line belong to our subgroup?
|
// does this line belong to our subgroup?
|
||||||
@@ -1787,6 +1787,9 @@ bool wxFileConfigGroup::DeleteSubgroup(wxFileConfigGroup *pGroup)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( pl == m_pLine )
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user