Skip to content

Commit

Permalink
fix: var type
Browse files Browse the repository at this point in the history
This var is array decoded from json, not an object.

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Apr 8, 2024
1 parent 51f94d7 commit 188f41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FileElementService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 188f41c

Please sign in to comment.