From 0079417e1cf4d48b7aac56c7a2b41c0607ac1d7e Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Thu, 8 Jan 2026 22:38:41 -0600 Subject: [PATCH] better left scan --- src/stitching_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index 7442f3f..c2e43d7 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -525,7 +525,7 @@ class StitchingScanner: # stop_reason = 'min_dim' # break - if total_x <= 0 and direction == ScanDirection.LEFT: + if total_x <= -(self.config.max_mosaic_width) and direction == ScanDirection.LEFT: self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)") self.log(f"Current X offset ({self.state.current_x}px) total_x ({total_x}px)") stop_reason = 'max_dim'