fix rename and skip inline fonts to cache key

This commit is contained in:
zsviczian
2024-07-28 06:24:30 +02:00
parent 1769a65a82
commit 8b066d46e2
4 changed files with 37 additions and 9 deletions

View File

@@ -366,7 +366,10 @@ export class EmbeddedFilesLoader {
const hasFilenameParts = Boolean((inFile instanceof EmbeddedFile) && inFile.filenameparts);
const filenameParts = hasFilenameParts ? (inFile as EmbeddedFile).filenameparts : null;
const cacheKey:ImageKey = {
...hasFilenameParts? filenameParts : {
...hasFilenameParts? {
...filenameParts,
inlineFonts: !exportSettings.skipInliningFonts,
}: {
filepath: file.path,
hasBlockref: false,
hasGroupref: false,
@@ -375,6 +378,7 @@ export class EmbeddedFilesLoader {
hasFrameref: false,
hasClippedFrameref: false,
hasSectionref: false,
inlineFonts: !exportSettings.skipInliningFonts,
blockref: null,
sectionref: null,
linkpartReference: null,