[librsvg: 52/90] Reset back to the initial_affine before clipping
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 52/90] Reset back to the initial_affine before clipping
- Date: Tue, 26 Mar 2019 19:16:26 +0000 (UTC)
commit 6bbfe941bdff22b1b7cab44a41b3ea13c268b174
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Mar 19 19:06:04 2019 -0600
Reset back to the initial_affine before clipping
Instead of identity_matrix(), since we are considering the intial
affine to be the base now.
rsvg_internals/src/drawing_ctx.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 7c6449db..de73e51e 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -494,7 +494,7 @@ impl DrawingCtx {
dc.cr = dc.cr_stack.pop().unwrap();
- dc.cr.identity_matrix();
+ dc.cr.set_matrix(dc.initial_affine);
dc.cr.set_source_surface(&source_surface, 0.0, 0.0);
dc.cr.set_matrix(affine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]