mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
fix pattern test
This commit is contained in:
@@ -163,7 +163,7 @@ impl<'a> PatternView<'a> {
|
||||
|
||||
// index is the number of bars and spaces from the first bar to the current position
|
||||
pub fn index(&self) -> usize {
|
||||
self.current - self.start /*return narrow_cast<int>(_data - _base) - 1;*/
|
||||
self.current /*return narrow_cast<int>(_data - _base) - 1;*/
|
||||
}
|
||||
pub fn pixelsInFront(&self) -> PatternType {
|
||||
self.data
|
||||
|
||||
Reference in New Issue
Block a user