Skip to content

Commit

Permalink
Editor: fixed setting of FontFile.SourceFilename when adding new file
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Oct 23, 2024
1 parent 74f89f9 commit bf09c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/AGS.Editor/Components/FontsComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private FontFile NewFontFile(string filename, string sourceFilename = null)
sourceFilename = filename;
FontFile newItem = new FontFile();
newItem.FileName = Path.GetFileName(filename);
newItem.SourceFilename = filename;
newItem.SourceFilename = sourceFilename;
if (newItem.FileName.EndsWith(".wfn", StringComparison.OrdinalIgnoreCase))
newItem.FileFormat = FontFileFormat.WFN;
else if (newItem.FileName.EndsWith(".ttf", StringComparison.OrdinalIgnoreCase))
Expand Down

0 comments on commit bf09c82

Please sign in to comment.