From e3a0e2c9d843e6c934aa70b6647909830693fa7b Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 25 Jul 2025 10:54:44 -0400
Subject: fixed style doc dropping on images to work when non-firefly tags are
 set.

---
 src/client/views/smartdraw/DrawingFillHandler.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/smartdraw/DrawingFillHandler.tsx')

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('.');
-- 
cgit v1.2.3-70-g09d2

