Skip to content

Commit 97718e2

Browse files
committed
- 修复mask转换为polygon的显示错误问题
1 parent 0866f39 commit 97718e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ISAT/widgets/canvas.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def finish_draw(self):
312312
continue
313313
for point in contour:
314314
x, y = point[0]
315+
x = max(0.1, x)
316+
y = max(0.1, y)
315317
self.current_graph.addPoint(QtCore.QPointF(x, y))
316318

317319
if self.contour_mode == CONTOURMode.SAVE_ALL and hierarchy[0][index][3] != -1:

0 commit comments

Comments
 (0)