From e18602a84ece31103d49c1b9c60789fce476ad27 Mon Sep 17 00:00:00 2001 From: nkan-aot2 <156717133+nkan-aot2@users.noreply.github.com> Date: Wed, 29 May 2024 14:57:07 -0700 Subject: [PATCH] fix error with previous commit --- web/src/components/FOI/Home/Redlining.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/FOI/Home/Redlining.js b/web/src/components/FOI/Home/Redlining.js index 2576897f7..c3c4eca3a 100644 --- a/web/src/components/FOI/Home/Redlining.js +++ b/web/src/components/FOI/Home/Redlining.js @@ -2244,7 +2244,7 @@ const Redlining = React.forwardRef( _annot.PageNumber = _redaction?.getPageNumber(); // let rect = _redaction.getQuads()[0].toRect(); let quad = _redaction.getQuads()[0]; - let rect = docInstance.Core.Math.Rect(quad.x1, quad.y3, quad.x2, quad.y2); + let rect = new docInstance.Core.Math.Rect(quad.x1, quad.y3, quad.x2, quad.y2); const doc = docViewer.getDocument(); const pageInfo = doc.getPageInfo(_annot.PageNumber); const pageMatrix = doc.getPageMatrix(_annot.PageNumber);