Skip to content

Commit 5fa2c09

Browse files
committed
- fix bug
修复手动标注的多边形,图层低一层的问题。
1 parent 300ff07 commit 5fa2c09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ISAT/widgets/canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ def finish_draw(self):
387387
self.mainwindow.categories_dock_widget.lineEdit_currentGroup.setText(str(self.mainwindow.current_group))
388388

389389
# 设置为最高图层
390-
self.current_graph.setZValue(len(self.mainwindow.polygons))
390+
self.current_graph.setZValue(len(self.mainwindow.polygons)+1)
391391
for vertex in self.current_graph.vertexs:
392-
vertex.setZValue(len(self.mainwindow.polygons))
392+
vertex.setZValue(len(self.mainwindow.polygons)+1)
393393

394394
# 添加新polygon
395395
self.mainwindow.polygons.append(self.current_graph)

0 commit comments

Comments
 (0)