Skip to content

Commit 3d47e19

Browse files
committed
Fix points returned for rectangle shape
The ordering in detectShape() put the rectangle first. But for rectangles isCircleShape() could be true as well. So it could happen that a rectangle should be imported with circle coordinates which failed.
1 parent 3ae9d6b commit 3d47e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Annotation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getLabelAndUsers(array $categories): array
5959

6060
public function getPoints(): array
6161
{
62-
if ($this->isCircleShape()) {
62+
if ($this->getShape()->id === Shape::circleId()) {
6363
return $this->getCirclePoints();
6464
}
6565
return $this->segmentation;

0 commit comments

Comments
 (0)