From f30158fd18e46660ea5b9648d3fc6e7483abd677 Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Thu, 8 Jan 2026 21:24:11 -0600 Subject: [PATCH] vertical mosiacv addition alignment fic --- src/stitching_scanner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index f72e2a8..3aea232 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -517,12 +517,12 @@ class StitchingScanner: # stop_reason = 'min_dim' # break - if abs(total_x) >= self.config.max_mosaic_width: + if abs(total_x) >= self.config.max_mosaic_width or total_x <= 0: self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)") if direction == ScanDirection.RIGHT: - self.state.current_x = self.state.max_mosaic_width - w # At right edge - elif direction == ScanDirection.LEFT: self.state.current_x = 0 + elif direction == ScanDirection.LEFT: + self.state.current_x = self.state.max_mosaic_width - w # At right edge self.log(f"Current X offset ({self.state.current_x}px)") stop_reason = 'max_dim' break