From b5d2a457e3ad4e343b7f849288b155ebf1d052ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Bo=C5=BEi=C4=87?= Date: Thu, 10 Apr 2025 21:42:13 +0200 Subject: [PATCH] fix: check failing if coordinate is 0 --- tool/app/istarcore/fileManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/app/istarcore/fileManager.js b/tool/app/istarcore/fileManager.js index 9763f16..e671055 100644 --- a/tool/app/istarcore/fileManager.js +++ b/tool/app/istarcore/fileManager.js @@ -413,7 +413,7 @@ istar.fileManager = function() { } function addLoadedElement (element, display) { - if (element.id && element.type && element.x && element.y) { + if (element.id && element.type && typeof element.x === 'number' && typeof element.y === 'number' ) { element.text = element.text || ''; var type = element.type.split('.')[1]; if (istar['add' + type]) {