Browse Source

Fix openNexImg at bottom

Kentaro Wada 6 years ago
parent
commit
3c9af23038
1 changed files with 2 additions and 0 deletions
  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: