mirror of https://github.com/odrling/Aegisub
Fix override block parsing
Originally committed to SVN as r1218.
This commit is contained in:
parent
f7fe30b7c9
commit
77e2f20424
|
@ -468,7 +468,7 @@ void AssDialogue::ParseASSTags () {
|
||||||
work = Text.substr(cur);
|
work = Text.substr(cur);
|
||||||
end = len;
|
end = len;
|
||||||
}
|
}
|
||||||
else work = Text.substr(cur,end-cur);
|
else work = Text.substr(cur,end-cur+1);
|
||||||
|
|
||||||
if (work.Find(_T("\\")) == wxNOT_FOUND) {
|
if (work.Find(_T("\\")) == wxNOT_FOUND) {
|
||||||
//We've found an override block with no backslashes
|
//We've found an override block with no backslashes
|
||||||
|
@ -481,8 +481,7 @@ void AssDialogue::ParseASSTags () {
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
work = Text.substr(cur+1,end-cur-1);
|
work = work.substr(1,work.Len()-2); // trim { and }
|
||||||
|
|
||||||
// Create block
|
// Create block
|
||||||
AssDialogueBlockOverride *block = new AssDialogueBlockOverride;
|
AssDialogueBlockOverride *block = new AssDialogueBlockOverride;
|
||||||
block->parent = this;
|
block->parent = this;
|
||||||
|
|
Loading…
Reference in New Issue