Explorar o código

Fix openNexImg at bottom

Kentaro Wada %!s(int64=6) %!d(string=hai) anos
pai
achega
3c9af23038
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: