mirror of https://github.com/odrling/Aegisub
Use the customized default styles for SRT files opened from matroska
This commit is contained in:
parent
e061ac8755
commit
b42086fdfd
|
@ -40,6 +40,7 @@
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "dialog_progress.h"
|
#include "dialog_progress.h"
|
||||||
#include "MatroskaParser.h"
|
#include "MatroskaParser.h"
|
||||||
|
#include "options.h"
|
||||||
|
|
||||||
#include <libaegisub/file_mapping.h>
|
#include <libaegisub/file_mapping.h>
|
||||||
#include <libaegisub/format.h>
|
#include <libaegisub/format.h>
|
||||||
|
@ -237,7 +238,7 @@ void MatroskaWrapper::GetSubtitles(agi::fs::path const& filename, AssFile *targe
|
||||||
}
|
}
|
||||||
// Load default if it's SRT
|
// Load default if it's SRT
|
||||||
else {
|
else {
|
||||||
target->LoadDefault(false);
|
target->LoadDefault(false, OPT_GET("Subtitle Format/SRT/Default Style Catalog")->GetString());
|
||||||
parser.AddLine("[Events]");
|
parser.AddLine("[Events]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue