Skip to content

Commit

Permalink
Fix rotateImgAction malposition caused by currIndex (#28)
Browse files Browse the repository at this point in the history
Obtain the current file path using self.filePath
  • Loading branch information
TTTalen authored Jul 12, 2024
1 parent 94cc9de commit bcf632a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PPOCRLabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ def rotateImgWarn(self):
)

def rotateImgAction(self, k=1, _value=False):
filename = self.mImgList[self.currIndex]
filename = self.filePath

if os.path.exists(filename):
if self.itemsToShapesbox:
Expand Down

0 comments on commit bcf632a

Please sign in to comment.