From 49fb76f1c54fb8fc4e76bdcf675719d41bfc36aa Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 27 May 2025 14:27:51 -0400
Subject: canceling image outpaiting cancels outpaint ui from showing up now.

---
 src/client/views/nodes/ImageBox.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/client/views/nodes/ImageBox.tsx')

diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 7d130b4fb..6380dec17 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -369,6 +369,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
         this.Document._width = origWidth;
         this.Document._height = origHeight;
         this._outpaintingInProgress = false;
+        this.Document[this.fieldKey + '_outpaintOriginalWidth'] = undefined;
         this.closeOutpaintPrompt();
     };
 
-- 
cgit v1.2.3-70-g09d2

