From 48b15203d18e3d7b93cb1bd7e69688969894285e Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Thu, 24 Feb 2022 22:16:34 +0800 Subject: [PATCH] Fixed BUG: the image-slider won't change value when process fit window --- PPOCRLabel/PPOCRLabel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 036d38fdf..da6864d84 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -1466,6 +1466,7 @@ class MainWindow(QMainWindow): def adjustScale(self, initial=False): value = self.scalers[self.FIT_WINDOW if initial else self.zoomMode]() self.zoomWidget.setValue(int(100 * value)) + self.imageSlider.setValue(self.zoomWidget.value()) # set zoom slider value def scaleFitWindow(self): """Figure out the size of the pixmap in order to fit the main widget."""