mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
mqr tests pass
This commit is contained in:
@@ -197,7 +197,7 @@ impl<'a> PatternView<'a> {
|
||||
self.isValidWithN(self.size())
|
||||
}
|
||||
|
||||
fn has_quiet_zone_before(&self, scale: f32, acceptIfAtFirstBar: Option<bool>) -> bool {
|
||||
pub fn has_quiet_zone_before(&self, scale: f32, acceptIfAtFirstBar: Option<bool>) -> bool {
|
||||
(acceptIfAtFirstBar.unwrap_or(false) && self.isAtLastBar())
|
||||
|| Into::<f32>::into(self.data.0[self.count])
|
||||
>= Into::<f32>::into(self.sum(None)) * scale
|
||||
|
||||
Reference in New Issue
Block a user