fix for group names containing ']'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cd212ee425
commit
1c68fb912d
@ -431,8 +431,15 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal)
|
||||
pEnd = pStart;
|
||||
|
||||
while ( *++pEnd != wxT(']') ) {
|
||||
if ( *pEnd == wxT('\n') || *pEnd == wxT('\0') )
|
||||
if ( *pEnd == wxT('\\') ) {
|
||||
// the next char is escaped, so skip it even if it is ']'
|
||||
pEnd++;
|
||||
}
|
||||
|
||||
if ( *pEnd == wxT('\n') || *pEnd == wxT('\0') ) {
|
||||
// we reached the end of line, break out of the loop
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( *pEnd != wxT(']') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user