From 9c219a858f0394b1f45c1ea1f975f5b507aaf328 Mon Sep 17 00:00:00 2001 From: southwest-git Date: Tue, 11 Mar 2025 14:20:18 -0400 Subject: [PATCH] Update gridOutput.js Fix for issue 7259 to check for negative locX and locY in gridOutput.js --- src/accessibility/gridOutput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/accessibility/gridOutput.js b/src/accessibility/gridOutput.js index 5b52a23eb8..26868518f5 100644 --- a/src/accessibility/gridOutput.js +++ b/src/accessibility/gridOutput.js @@ -65,7 +65,9 @@ function _gridMap(idT, ingredients) { // Check if shape is in canvas, skip if not if( + ingredients[x][y].loc.locY >= 0 && ingredients[x][y].loc.locY < cells.length && + ingredients[x][y].loc.locX >= 0 && ingredients[x][y].loc.locX < cells[ingredients[x][y].loc.locY].length ){ //if empty cell of location of shape is undefined