mirror of https://github.com/odrling/Aegisub
Remove check for customized styles in SRTSubtitleFormat::CanSave
It doesn't work with customizable default styles.
This commit is contained in:
parent
73d64870af
commit
b96edfebcc
|
@ -494,12 +494,6 @@ bool SRTSubtitleFormat::CanSave(const AssFile *file) const {
|
||||||
if (!file->Attachments.empty())
|
if (!file->Attachments.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
std::string defstyle = AssStyle().GetEntryData();
|
|
||||||
for (auto const& line : file->Styles) {
|
|
||||||
if (line.GetEntryData() != defstyle)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto const& line : file->Events) {
|
for (auto const& line : file->Events) {
|
||||||
auto blocks = line.ParseTags();
|
auto blocks = line.ParseTags();
|
||||||
for (auto ovr : blocks | agi::of_type<AssDialogueBlockOverride>()) {
|
for (auto ovr : blocks | agi::of_type<AssDialogueBlockOverride>()) {
|
||||||
|
|
Loading…
Reference in New Issue