diff options
author | Paolo Borelli <pborelli@gnome.org> | 2018-12-30 18:20:48 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2018-12-30 18:33:20 +0100 |
commit | 0b959a95335ed5decba53803a6f822eb9a44b563 (patch) | |
tree | 7be26a909d5692563e60920abf8bcdeedabd6520 /rsvg_internals | |
parent | d10cd6131f97e250eb40bb8fbec2c889099f3692 (diff) | |
download | librsvg-0b959a95335ed5decba53803a6f822eb9a44b563.tar.gz |
drawing_ctx: clip() does not need a mutable reference
Diffstat (limited to 'rsvg_internals')
-rw-r--r-- | rsvg_internals/src/drawing_ctx.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs index 3a768274..72a4c18b 100644 --- a/rsvg_internals/src/drawing_ctx.rs +++ b/rsvg_internals/src/drawing_ctx.rs @@ -762,7 +762,7 @@ impl DrawingCtx { cr.set_matrix(matrix); } - pub fn clip(&mut self, x: f64, y: f64, w: f64, h: f64) { + pub fn clip(&self, x: f64, y: f64, w: f64, h: f64) { let cr = self.get_cairo_context(); let save_affine = cr.get_matrix(); |