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
1 changed files with 0 additions and 6 deletions
|
@ -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 a new issue