Defensive programming update

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2025-05-22 13:38:02 +02:00
parent 2e61d46cbd
commit 68cb5056ac
No known key found for this signature in database

View File

@ -204,7 +204,7 @@ const renderBindingHighlightForBindableElement = (
case "diamond": case "diamond":
drawHighlightForDiamondWithRotation(context, padding, element); drawHighlightForDiamondWithRotation(context, padding, element);
break; break;
case "ellipse": case "ellipse": {
const [x1, y1, x2, y2] = getElementAbsoluteCoords(element, elementsMap); const [x1, y1, x2, y2] = getElementAbsoluteCoords(element, elementsMap);
const width = x2 - x1; const width = x2 - x1;
const height = y2 - y1; const height = y2 - y1;
@ -221,6 +221,7 @@ const renderBindingHighlightForBindableElement = (
element.angle, element.angle,
); );
break; break;
}
} }
}; };