[librsvg/librsvg-2.50] Make a call to push_view_box(1.0, 1.0) consistent with the others
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.50] Make a call to push_view_box(1.0, 1.0) consistent with the others
- Date: Fri, 2 Oct 2020 19:24:37 +0000 (UTC)
commit 7af754505dc51eee88310793d0161f4aeda283fb
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Sep 22 13:59:57 2020 -0500
Make a call to push_view_box(1.0, 1.0) consistent with the others
We'll replace that little pattern with a helper function.
rsvg_internals/src/drawing_ctx.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index bd6cc3f3..870f14ca 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -487,12 +487,15 @@ impl DrawingCtx {
clip_to_rectangle(&mask_cr, &clip_rect);
- let _params = if mask.get_content_units() == CoordUnits::ObjectBoundingBox {
+ if mask.get_content_units() == CoordUnits::ObjectBoundingBox {
if bbox_rect.is_empty() {
return Ok(None);
}
assert!(bbtransform.is_invertible());
mask_cr.transform(bbtransform.into());
+ }
+
+ let _params = if mask.get_content_units() == CoordUnits::ObjectBoundingBox {
self.push_view_box(1.0, 1.0)
} else {
self.get_view_params()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]