aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-07-25 10:54:44 -0400
committerbobzel <zzzman@gmail.com>2025-07-25 10:54:44 -0400
commite3a0e2c9d843e6c934aa70b6647909830693fa7b (patch)
tree66b16cfe1333acd202463f9aa5b635f57c431d32
parent53f816699c77a178e43a314fc8f9335f5f1115f3 (diff)
fixed style doc dropping on images to work when non-firefly tags are set.
-rw-r--r--src/client/views/smartdraw/DrawingFillHandler.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/smartdraw/DrawingFillHandler.tsx b/src/client/views/smartdraw/DrawingFillHandler.tsx
index e9e3335f9..699d395b4 100644
--- a/src/client/views/smartdraw/DrawingFillHandler.tsx
+++ b/src/client/views/smartdraw/DrawingFillHandler.tsx
@@ -26,7 +26,7 @@ export class DrawingFillHandler {
.map(anchor => anchor!),
...(styleDoc ? [styleDoc] : [])
);
- const styleUrl = tags.length
+ const styleUrl = styles.length
? undefined
: await DocumentView.GetDocImage(styleDocs.filter(doc => doc?.data instanceof ImageField).lastElement())?.then(styleImg => {
const hrefParts = ImageCast(styleImg)?.url.href.split('.');