Browse Source

Fix openNexImg at bottom

Kentaro Wada 6 năm trước cách đây
mục cha
commit
3c9af23038
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      labelme/app.py

+ 2 - 0
labelme/app.py

@@ -1044,6 +1044,8 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
             currIndex = self.imageList.index(self.filename)
             if currIndex + 1 < len(self.imageList):
                 filename = self.imageList[currIndex + 1]
+            else:
+                filename = self.imageList[-1]
         self.filename = filename
 
         if self.filename and load: