Add support for omitted parameters in tags to the SRT exporter

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

View File

@ -534,7 +534,7 @@ wxString SRTSubtitleFormat::ConvertTags(AssDialogue *diag) const {
if (tag->IsValid() && tag->Name.size() == 2) {
std::map<char, bool>::iterator it = tag_states.find(tag->Name[1]);
if (it != tag_states.end()) {
bool temp = tag->Params[0]->Get<bool>();
bool temp = tag->Params[0]->Get(false);
if (temp && !it->second)
final += wxString::Format("<%c>", it->first);
if (!temp && it->second)