This commit is contained in:
2ManyProjects 2026-01-08 22:43:15 -06:00
parent 0079417e1c
commit 5a1e9b1360

View file

@ -525,13 +525,13 @@ class StitchingScanner:
# stop_reason = 'min_dim' # stop_reason = 'min_dim'
# break # break
if total_x <= -(self.config.max_mosaic_width) and direction == ScanDirection.LEFT: if self.state.current_x <= 0 and direction == ScanDirection.LEFT:
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)") 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)") self.log(f"Current X offset ({self.state.current_x}px) total_x ({total_x}px)")
stop_reason = 'max_dim' stop_reason = 'max_dim'
break break
if abs(total_x) >= self.config.max_mosaic_width and direction == ScanDirection.RIGHT: if abs(self.state.current_x) >= self.config.max_mosaic_width and direction == ScanDirection.RIGHT:
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)") self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
self.log(f"Current X offset ({self.state.current_x}px)") self.log(f"Current X offset ({self.state.current_x}px)")
stop_reason = 'max_dim' stop_reason = 'max_dim'