mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-13 02:18:16 +01:00
editor carriies over vector
This commit is contained in:
@@ -733,15 +733,11 @@ export const restoreGlyphElements = (
|
||||
rebuiltElements.push(...group.originalElements.map(cloneTextElement));
|
||||
});
|
||||
|
||||
const textDirty = groups.some((group) => group.text !== group.originalText);
|
||||
const imageDirty = areImageListsDifferent(images, baselineImages);
|
||||
const nextStreams = textDirty || imageDirty ? [] : page.contentStreams ?? [];
|
||||
|
||||
return {
|
||||
...page,
|
||||
textElements: rebuiltElements,
|
||||
imageElements: images.map(cloneImageElement),
|
||||
contentStreams: nextStreams,
|
||||
contentStreams: page.contentStreams ?? [],
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user