From 306041aa468afdd469602970f3d7976b077ad5f1 Mon Sep 17 00:00:00 2001 From: MIRIMIRIM <59959583+MIRIMIRIM@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:17:27 +0800 Subject: [PATCH] =?UTF-8?q?afs.core:=20not=20check=20comment=20lines?= =?UTF-8?q?=E2=80=99=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AssFontSubset.Core/src/AssFont.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssFontSubset.Core/src/AssFont.cs b/AssFontSubset.Core/src/AssFont.cs index 9b22cf6..b6bf296 100644 --- a/AssFontSubset.Core/src/AssFont.cs +++ b/AssFontSubset.Core/src/AssFont.cs @@ -22,7 +22,7 @@ public static Dictionary> GetAssFonts(string file, out A var undefinedStyles = new HashSet(); foreach (var und in undefinedStylesTemp) { - var usedUndStylesEvents = ass.Events.Collection.Where(e => e.Style == und); + var usedUndStylesEvents = ass.Events.Collection.Where(e => e.Style == und && e.IsDialogue); var notUsed = true; foreach (var evt in usedUndStylesEvents) {