fix
This commit is contained in:
parent
0079417e1c
commit
5a1e9b1360
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue