diff --git a/libs/shape.py b/libs/shape.py index bd07853..9bd3d95 100644 --- a/libs/shape.py +++ b/libs/shape.py @@ -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