Fix cropped image support in luma source

This is related to #27, corrects issue introduced with previous fix.
This commit is contained in:
Henry Schimke
2023-03-19 15:32:41 -05:00
parent 4bb228073a
commit 4ffeeb9d7f

View File

@@ -136,6 +136,7 @@ impl Luma8LuminanceSource {
self.data = new_data;
self.dimensions = new_dim;
self.original_dimension = (self.original_dimension.1, self.original_dimension.0);
self.origin = (self.origin.1, self.origin.0);
}
fn transpose(&mut self) {