From 3ce30319d392ea27852e50264e39d739ef17b5c2 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 12 Feb 2017 15:28:08 +0300 Subject: Fixed off-by-one error in progress bar --- YOSO/MainWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YOSO/MainWindow.py b/YOSO/MainWindow.py index 5da8382..3b31dfe 100644 --- a/YOSO/MainWindow.py +++ b/YOSO/MainWindow.py @@ -38,7 +38,7 @@ class MainWindow(QMainWindow): self._image_spinner.setValue(0) image_total = len(self._current_images) if image_total > 0: - self._progress_bar.setRange(1, image_total + 1) + self._progress_bar.setRange(0, image_total) self._image_spinner.setRange(1, image_total) self._image_spinner.setEnabled(True) self._image_spinner.setValue(1) -- cgit v1.2.3