[librsvg: 36/45] Pass a session to ElementInner.set_error()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 36/45] Pass a session to ElementInner.set_error()
- Date: Wed, 24 Aug 2022 01:56:39 +0000 (UTC)
commit ed471cab0526b53116e64381f75e16dea8740d13
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Aug 23 17:52:23 2022 -0500
Pass a session to ElementInner.set_error()
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>
src/element.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/element.rs b/src/element.rs
index 274fc4e94..c944336cf 100644
--- a/src/element.rs
+++ b/src/element.rs
@@ -134,7 +134,7 @@ impl<T: SetAttributes + Draw> ElementInner<T> {
};
if let Err(error) = set_attributes() {
- e.set_error(error);
+ e.set_error(error, session);
}
e
@@ -246,13 +246,13 @@ impl<T: SetAttributes + Draw> ElementInner<T> {
&mut self.important_styles,
session,
) {
- self.set_error(e);
+ self.set_error(e, session);
}
}
}
- fn set_error(&mut self, error: ElementError) {
- rsvg_log!("setting node {} in error: {}", self, error);
+ fn set_error(&mut self, error: ElementError, session: &Session) {
+ rsvg_log_session!(session, "setting node {} in error: {}", self, error);
self.result = Err(error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]