From 0ccf9cb11156f325d4ea176229631bdf2e96ee42 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Mon, 30 Jul 2007 00:25:26 +0000 Subject: [PATCH] Small fix to font attaching to file. Originally committed to SVN as r1461. --- aegisub/ass_file.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/ass_file.cpp b/aegisub/ass_file.cpp index cd8c8d6c8..3e0b4a595 100644 --- a/aegisub/ass_file.cpp +++ b/aegisub/ass_file.cpp @@ -613,7 +613,8 @@ void AssFile::InsertAttachment (wxString filename) { } // Insert - if (filename.Right(4).Lower() == _T(".ttf")) newAttach->group = _T("[Fonts]"); + wxString ext = filename.Right(4).Lower(); + if (ext == _T(".ttf") || ext == _T(".ttc") || ext == _T(".pfb")) newAttach->group = _T("[Fonts]"); else newAttach->group = _T("[Graphics]"); InsertAttachment(newAttach); }