Trim raw data from left before parsing a style, else the mid(6) to get rid of "style:" can fail, usually leaving the :

Originally committed to SVN as r927.
This commit is contained in:
Dan Donovan 2007-02-06 22:35:15 +00:00
parent 6dcb5ff4a8
commit 317fba2e1e
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ bool AssStyle::Parse(wxString rawData,int version) {
// Tokenize
wxString temp;
long templ;
wxStringTokenizer tkn(rawData.Mid(6),_T(","),wxTOKEN_RET_EMPTY_ALL);
wxStringTokenizer tkn(rawData.Trim(false).Mid(6),_T(","),wxTOKEN_RET_EMPTY_ALL);
// Read name
if (!tkn.HasMoreTokens()) return false;