fix: multi pattern position
All checks were successful
CI/CD / wol (push) Successful in 12s
CI/CD / build (push) Successful in 9m25s

This commit is contained in:
2025-08-23 14:54:04 +02:00
parent 552a330feb
commit a563a01ca3
2 changed files with 8 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ class Pattern(QGraphicsItemGroup):
self.top_left_corner_x = top_left_corner_x
self.top_left_corner_y = top_left_corner_y
# center coordinates of the pattern
center_x = int((top_left_corner_x + self.PATTERN_WIDTH) / 2)
center_y = int((top_left_corner_y + self.PATTERN_WIDTH) / 2)
center_x = top_left_corner_x + int(self.PATTERN_WIDTH / 2)
center_y = top_left_corner_y + int(self.PATTERN_WIDTH / 2)
# center