mirror of https://github.com/odrling/Aegisub
Small fix to font attaching to file.
Originally committed to SVN as r1461.
This commit is contained in:
parent
0718cf5a2c
commit
0ccf9cb111
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue