mirror of https://github.com/odrling/Aegisub
Add support for omitted parameters in tags to the SRT exporter
Originally committed to SVN as r6622.
This commit is contained in:
parent
87d5b1b943
commit
e4043e64a3
|
@ -534,7 +534,7 @@ wxString SRTSubtitleFormat::ConvertTags(AssDialogue *diag) const {
|
||||||
if (tag->IsValid() && tag->Name.size() == 2) {
|
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(false);
|
||||||
if (temp && !it->second)
|
if (temp && !it->second)
|
||||||
final += wxString::Format("<%c>", it->first);
|
final += wxString::Format("<%c>", it->first);
|
||||||
if (!temp && it->second)
|
if (!temp && it->second)
|
||||||
|
|
Loading…
Reference in New Issue