Small fix to font attaching to file.

Originally committed to SVN as r1461.
This commit is contained in:
Rodrigo Braz Monteiro 2007-07-30 00:25:26 +00:00
parent 0718cf5a2c
commit 0ccf9cb111
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}