From b7d656a290186a4c231c4d51b6d67fb354e81752 Mon Sep 17 00:00:00 2001 From: Ramzi Sabra Date: Wed, 12 Jun 2024 19:46:21 +0300 Subject: [PATCH] Fix issue in Debug impl for AffineTransform where yoff is shown instead of xoff --- geo/CHANGES.md | 2 ++ geo/src/algorithm/affine_ops.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/geo/CHANGES.md b/geo/CHANGES.md index 851835a9a..1ffa8ac76 100644 --- a/geo/CHANGES.md +++ b/geo/CHANGES.md @@ -4,6 +4,8 @@ * Implement getter methods on `AffineTransform` to access internal elements. * +* Fix issue in Debug impl for AffineTransform where yoff is shown instead of xoff + * ## 0.28.0 diff --git a/geo/src/algorithm/affine_ops.rs b/geo/src/algorithm/affine_ops.rs index cca78c555..c505bb788 100644 --- a/geo/src/algorithm/affine_ops.rs +++ b/geo/src/algorithm/affine_ops.rs @@ -389,7 +389,7 @@ impl fmt::Debug for AffineTransform { f.debug_struct("AffineTransform") .field("a", &self.0[0][0]) .field("b", &self.0[0][1]) - .field("xoff", &self.0[1][2]) + .field("xoff", &self.0[0][2]) .field("d", &self.0[1][0]) .field("e", &self.0[1][1]) .field("yoff", &self.0[1][2])