mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
fix rotation regression for Luma8
part of #27. This is an issue with get_matrix after a rotation.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rxing"
|
name = "rxing"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
description="A rust port of the zxing barcode library."
|
description="A rust port of the zxing barcode library."
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
repository="https://github.com/rxing-core/rxing"
|
repository="https://github.com/rxing-core/rxing"
|
||||||
|
|||||||
@@ -134,7 +134,8 @@ impl Luma8LuminanceSource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.data = new_data;
|
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) {
|
fn transpose(&mut self) {
|
||||||
|
|||||||
Reference in New Issue
Block a user