mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
all qrcode tests pass
This commit is contained in:
@@ -622,7 +622,7 @@ impl FinderPatternFinder {
|
||||
// This is the case where you find top left last.
|
||||
self.hasSkipped = true;
|
||||
let fnp = firstConfirmedCenter.unwrap();
|
||||
return (((fnp.getX() - center.getX().abs())
|
||||
return (((fnp.getX() - center.getX()).abs()
|
||||
- (fnp.getY() - center.getY()).abs())
|
||||
/ 2.0)
|
||||
.floor() as u32;
|
||||
|
||||
Reference in New Issue
Block a user