]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
Fixed problem where corner label was displayed when either row or col label size...
[wxWidgets.git] / src / common / fileconf.cpp
index acdc908251636d23872bb7b8b2fb9e28e30b2bb9..1ee849986d80b72977611516eab6a9d80d032db0 100644 (file)
@@ -468,6 +468,7 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal)
       }
     }
     else {                        // a key
       }
     }
     else {                        // a key
+      size_t count = 0;
       const wxChar *pEnd = pStart;
       while ( *pEnd != wxT('=') && !wxIsspace(*pEnd) ) {
         if ( *pEnd == wxT('\\') ) {
       const wxChar *pEnd = pStart;
       while ( *pEnd != wxT('=') && !wxIsspace(*pEnd) ) {
         if ( *pEnd == wxT('\\') ) {
@@ -476,10 +477,11 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal)
           pEnd++;
         }
 
           pEnd++;
         }
 
+        count++;
         pEnd++;
       }
 
         pEnd++;
       }
 
-      wxString strKey(FilterInEntryName(wxString(pStart, pEnd)));
+      wxString strKey(FilterInEntryName(wxString(pStart, count)));
 
       // skip whitespace
       while ( isspace(*pEnd) )
 
       // skip whitespace
       while ( isspace(*pEnd) )