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:
@@ -113,6 +113,9 @@ impl Version {
|
||||
}
|
||||
|
||||
pub fn getECBlocksForLevel(&self, ecLevel: ErrorCorrectionLevel) -> &ECBlocks {
|
||||
if ecLevel.get_ordinal() as usize >= self.ecBlocks.len() {
|
||||
return &self.ecBlocks[ecLevel.get_ordinal() as usize % self.ecBlocks.len()];
|
||||
}
|
||||
&self.ecBlocks[ecLevel.get_ordinal() as usize]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user