Fix error when exporting a file with \bord tags to SRT

Originally committed to SVN as r6621.
This commit is contained in:
Thomas Goyne 2012-03-27 23:15:03 +00:00
parent fccec60fec
commit 87d5b1b943
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ wxString SRTSubtitleFormat::ConvertTags(AssDialogue *diag) const {
// Iterate through overrides // Iterate through overrides
for (size_t j = 0; j < block->Tags.size(); j++) { for (size_t j = 0; j < block->Tags.size(); j++) {
AssOverrideTag *tag = block->Tags[j]; AssOverrideTag *tag = block->Tags[j];
if (tag->IsValid()) { if (tag->IsValid() && tag->Name.size() == 2) {
std::map<char, bool>::iterator it = tag_states.find(tag->Name[1]); std::map<char, bool>::iterator it = tag_states.find(tag->Name[1]);
if (it != tag_states.end()) { if (it != tag_states.end()) {
bool temp = tag->Params[0]->Get<bool>(); bool temp = tag->Params[0]->Get<bool>();