Skip to content

Commit

Permalink
Skip annotated json even with keep_prev=True
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Apr 18, 2019
1 parent 11c0fc8 commit 7b417c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ def loadFile(self, filename=None):
self.loadLabels(self.labelFile.shapes)
if self.labelFile.flags is not None:
self.loadFlags(self.labelFile.flags)
if self._config['keep_prev']:
if self._config['keep_prev'] and not self.labelList.shapes:
self.loadShapes(prev_shapes, replace=False)
self.setClean()
self.canvas.setEnabled(True)
Expand Down

0 comments on commit 7b417c2

Please sign in to comment.