Update shape.py

pull/6951/head
Evezerest 2022-07-26 15:30:38 +08:00 committed by GitHub
parent 81f29c936f
commit d03b25b0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ class Shape(object):
color = self.select_line_color if self.selected else self.line_color
pen = QPen(color)
# Try using integer sizes for smoother drawing(?)
# no need, it casuses that font is too small in high-resolusion image
# pen.setWidth(max(1, int(round(2.0 / self.scale))))
pen.setWidth(max(1, int(round(2.0 / self.scale))))
painter.setPen(pen)
line_path = QPainterPath()