[librsvg: 11/12] bbox.rs: Fix typo in clippification
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 11/12] bbox.rs: Fix typo in clippification
- Date: Mon, 8 Jan 2018 15:22:07 +0000 (UTC)
commit 882c1d42685abdc9e58d80cd9e10a4d16a7eac6c
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jan 8 09:00:49 2018 -0600
bbox.rs: Fix typo in clippification
dst.rect.y should be dst.rect.x in the first hunk
rust/src/bbox.rs | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/bbox.rs b/rust/src/bbox.rs
index b395a6b..9cf4827 100644
--- a/rust/src/bbox.rs
+++ b/rust/src/bbox.rs
@@ -42,7 +42,10 @@ pub extern fn rsvg_bbox_insert (raw_dst: *mut RsvgBbox, raw_src: *const RsvgBbox
}
let (mut xmin, mut ymin, mut xmax, mut ymax) = if !dst.is_virgin () {
- (dst.rect.y, dst.rect.y, (dst.rect.x + dst.rect.width), (dst.rect.y + dst.rect.height))
+ (dst.rect.x,
+ dst.rect.y,
+ (dst.rect.x + dst.rect.width),
+ (dst.rect.y + dst.rect.height))
} else {
(0.0, 0.0, 0.0, 0.0)
};
@@ -98,7 +101,10 @@ pub extern fn rsvg_bbox_clip (raw_dst: *mut RsvgBbox, raw_src: *const RsvgBbox)
}
let (mut xmin, mut ymin, mut xmax, mut ymax) = if !dst.is_virgin () {
- ((dst.rect.x + dst.rect.width), (dst.rect.y + dst.rect.height), dst.rect.x, dst.rect.y)
+ ((dst.rect.x + dst.rect.width),
+ (dst.rect.y + dst.rect.height),
+ dst.rect.x,
+ dst.rect.y)
} else {
(0.0, 0.0, 0.0, 0.0)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]