Skip to content

Commit

Permalink
hover dont change point size
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtranducdung committed May 15, 2024
1 parent 7899646 commit fa671ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions labelme/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ def drawVertex(self, path, i, point_id, linesize = 'small'):
self._vertex_fill_color = self.hvertex_fill_color
else:
self._vertex_fill_color = self.vertex_fill_color
if shape == self.P_SQUARE:
path.addRect(point.x() - d / 2, point.y() - d / 2, d, d)
elif shape == self.P_ROUND:
if shape == self.P_SQUARE or shape == self.P_ROUND:
if linesize == 'big':
path.addEllipse(point, (d / 2.0) + 5, (d / 2.0) + 5)
elif linesize == 'small':
Expand Down

0 comments on commit fa671ff

Please sign in to comment.