From 188f41c06c0e4cc56ea99158cca8a66e6cc29752 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 8 Apr 2024 14:28:28 -0300 Subject: [PATCH] fix: var type This var is array decoded from json, not an object. Signed-off-by: Vitor Mattos --- lib/Service/FileElementService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/FileElementService.php b/lib/Service/FileElementService.php index 8e276824fc..6d71c85287 100644 --- a/lib/Service/FileElementService.php +++ b/lib/Service/FileElementService.php @@ -136,7 +136,7 @@ public function translateCoordinatesFromInternalNotation(array $properties, File $translated['left'] = $properties['coordinates']['llx']; $translated['height'] = abs($properties['coordinates']['ury'] - $properties['coordinates']['lly']); - $translated['top'] = $dimension->h - $properties['coordinates']['ury']; + $translated['top'] = $dimension['h'] - $properties['coordinates']['ury']; $translated['width'] = $properties['coordinates']['urx'] - $properties['coordinates']['llx']; return $translated;