[librsvg: 20/45] element.rs: Use the DrawingCtx.session()




commit f08a55b0ca27a891b35ae02ffd02fcde76884248
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Aug 22 19:10:14 2022 -0500

    element.rs: Use the DrawingCtx.session()
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>

 src/element.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/element.rs b/src/element.rs
index 4619cda8e..ffa47fb08 100644
--- a/src/element.rs
+++ b/src/element.rs
@@ -276,7 +276,11 @@ impl<T: SetAttributes + Draw> Draw for ElementInner<T> {
                 Ok(draw_ctx.empty_bbox())
             }
         } else {
-            rsvg_log!("(not rendering element {} because it is in error)", self);
+            rsvg_log_session!(
+                draw_ctx.session(),
+                "(not rendering element {} because it is in error)",
+                self
+            );
 
             // maybe we should actually return a RenderingError::ElementIsInError here?
             Ok(draw_ctx.empty_bbox())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]