This commit is contained in:
kennytm 2014-10-05 02:32:26 +08:00
parent bca618fe12
commit 87f04e57c3

View file

@ -333,7 +333,7 @@ impl Canvas {
fn draw_alignment_patterns(&mut self) { fn draw_alignment_patterns(&mut self) {
match self.version { match self.version {
MicroVersion(_) | Version(1) => { return; } MicroVersion(_) | Version(1) => { return; }
Version(2..6) => self.draw_alignment_pattern_at(-7, -7), Version(2...6) => self.draw_alignment_pattern_at(-7, -7),
Version(a) => { Version(a) => {
let positions = ALIGNMENT_PATTERN_POSITIONS[a as uint - 7]; let positions = ALIGNMENT_PATTERN_POSITIONS[a as uint - 7];
for x in positions.iter() { for x in positions.iter() {