Skip to content

Commit

Permalink
fix crash issue when “show box serial number” is turned on (#43)
Browse files Browse the repository at this point in the history
- fix crash issue when “show box serial number” is turned on.
  • Loading branch information
lwinhong authored Aug 1, 2024
1 parent b64926c commit fba5f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def paint(self, painter):
text = str(self.idx)
if min_y < MIN_Y_LABEL:
min_y += MIN_Y_LABEL
painter.drawText(min_x, min_y, text)
painter.drawText(int(min_x), int(min_y), text)

if self.fill:
color = self.select_fill_color if self.selected else self.fill_color
Expand Down

0 comments on commit fba5f8c

Please sign in to comment.