Small fix to font attaching to file.
Originally committed to SVN as r1461.
This commit is contained in:
parent
0718cf5a2c
commit
0ccf9cb111
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue