forked from mia/Aegisub
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:
parent
6dcb5ff4a8
commit
317fba2e1e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue