From 8847d6cf5a0eaeeddaefc71d0202247b4d2d096b Mon Sep 17 00:00:00 2001
From: eleanor-park <eleanor_park@brown.edu>
Date: Sun, 3 Nov 2024 16:32:28 -0500
Subject: working on smart draw width bugs

---
 src/client/views/nodes/imageEditor/ImageEditor.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/client/views/nodes/imageEditor/ImageEditor.tsx b/src/client/views/nodes/imageEditor/ImageEditor.tsx
index 8f6a7e023..c8fe5adc3 100644
--- a/src/client/views/nodes/imageEditor/ImageEditor.tsx
+++ b/src/client/views/nodes/imageEditor/ImageEditor.tsx
@@ -426,7 +426,7 @@ const ImageEditor = ({ imageEditorOpen, imageEditorSource, imageRootDoc, addDoc
         image.onload = async () => {
             let finalImg: HTMLImageElement | undefined = image;
             let finalImgURL: string = url;
-            if (currCutType == BrushMode.IN) {
+            if (currCutType == BrushMode.IN || currCutType == BrushMode.LINE_IN) {
                 const croppedData = cropImage(image, minX, maxX, minY, maxY);
                 finalImg = croppedData;
                 finalImgURL = croppedData.src;
-- 
cgit v1.2.3-70-g09d2

