Fixed Fonts Collector behavior with font shortcuts.

Originally committed to SVN as r128.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-23 20:29:23 +00:00
parent 156816a3ce
commit 3a4f59991b
2 changed files with 10 additions and 1 deletions

View file

@ -48,6 +48,7 @@ Please visit http://aegisub.net to download latest version
- Now requires Avisynth 2.5.6a or later, added an option ("allow ancient avisynth") to override it to config.dat. (Myrsloik)
- Added reading of keyframe and timecode data from Matroska files (which are still not recommended, due to their dependency on DirectShowSource). (AMZ)
- Added forums and bugtracker to Help menu. (AMZ)
- Fixed Fonts Collector behavior with font shortcuts. (AMZ)
= 1.09 beta - 2006.01.16 ===========================

View file

@ -360,8 +360,16 @@ void FontsCollectorThread::Collect() {
// Copy
else {
wxString srcFile = source + work[j];
// Get path to font file
wxString srcFile;
wxFileName srcFileName(work[j]);
if (srcFileName.FileExists() && srcFileName.IsAbsolute()) srcFile = work[j];
else srcFile = source + work[j];
// Copy font
bool success = Copy(srcFile,dstFile);
// Report
wxMutexGuiEnter();
if (success) {
LogBox->SetDefaultStyle(wxTextAttr(wxColour(0,180,0)));