Fix unreferenced variable in openPrevImg
This commit is contained in:
parent
76b610aa6d
commit
f6842b3377
@ -556,6 +556,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||
points=[(p.x(), p.y()) for p in s.points])
|
||||
|
||||
shapes = [format_shape(shape) for shape in self.canvas.shapes]
|
||||
# Can add differrent annotation formats here
|
||||
try:
|
||||
if self.usingPascalVocFormat is True:
|
||||
print 'savePascalVocFormat save to:' + filename
|
||||
@ -830,11 +831,11 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||
currIndex = self.mImgList.index(self.filename)
|
||||
if currIndex -1 >= 0:
|
||||
filename = self.mImgList[currIndex-1]
|
||||
|
||||
if filename:
|
||||
self.loadFile(filename)
|
||||
|
||||
|
||||
|
||||
def openNextImg(self, _value=False):
|
||||
# Proceding next image without dialog if having any label
|
||||
if self.autoSaving is True and self.defaultSaveDir is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user