[librsvg: 56/90] clip_to_node() - don't consume the node reference
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 56/90] clip_to_node() - don't consume the node reference
- Date: Tue, 26 Mar 2019 19:16:46 +0000 (UTC)
commit f133df90468cda17313d0158a2f364312bea76f2
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Mar 20 09:56:58 2019 -0600
clip_to_node() - don't consume the node reference
rsvg_internals/src/drawing_ctx.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 0a78a965..4a947aff 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -404,7 +404,7 @@ impl DrawingCtx {
fn clip_to_node(
&mut self,
- clip_node: Option<RsvgNode>,
+ clip_node: &Option<RsvgNode>,
) -> Result<(), RenderingError> {
if let Some(clip_node) = clip_node {
let orig_bbox = self.bbox;
@@ -454,7 +454,7 @@ impl DrawingCtx {
let (clip_in_user_space, clip_in_object_space) =
dc.get_clip_in_user_and_object_space(clip_uri);
- dc.clip_to_node(clip_in_user_space)?;
+ dc.clip_to_node(&clip_in_user_space)?;
let needs_temporary_surface = !(opacity == 1.0
&& filter.is_none()
@@ -503,6 +503,7 @@ impl DrawingCtx {
dc.cr.set_matrix(untransformed);
// dc.cr.set_matrix(affine);
dc.clip_to_node(clip_in_object_space)?;
+ dc.clip_to_node(&clip_in_object_space)?;
if let Some(mask) = mask {
if let Some(acquired) =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]