Skip to content

Commit

Permalink
fix rotation regression for Luma8
Browse files Browse the repository at this point in the history
part of #27. This is an issue with get_matrix after a rotation.
  • Loading branch information
hschimke committed Mar 16, 2023
1 parent 112e20c commit 4bb2280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rxing"
version = "0.4.0"
version = "0.4.1"
description="A rust port of the zxing barcode library."
license="Apache-2.0"
repository="https://github.com/rxing-core/rxing"
Expand Down
3 changes: 2 additions & 1 deletion src/luma_luma_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ impl Luma8LuminanceSource {
}
}
self.data = new_data;
self.dimensions = new_dim
self.dimensions = new_dim;
self.original_dimension = (self.original_dimension.1, self.original_dimension.0);
}

fn transpose(&mut self) {
Expand Down

0 comments on commit 4bb2280

Please sign in to comment.