From bcf632a2bdde25b99852d0cd3026478ece7c24d1 Mon Sep 17 00:00:00 2001 From: Treavl Scott <103922971+TTTalen@users.noreply.github.com> Date: Fri, 12 Jul 2024 22:06:50 +0800 Subject: [PATCH] Fix rotateImgAction malposition caused by currIndex (#28) Obtain the current file path using self.filePath --- PPOCRLabel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PPOCRLabel.py b/PPOCRLabel.py index b3aabf9..3001d2b 100644 --- a/PPOCRLabel.py +++ b/PPOCRLabel.py @@ -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: