[librsvg: 7/27] Clarify variable name
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/27] Clarify variable name
- Date: Fri, 5 Mar 2021 23:36:26 +0000 (UTC)
commit 215e8ede3df0dd57e11229589230495452ce4f45
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 4 19:23:11 2021 -0600
Clarify variable name
We already have a node_name, but node_id didn't refer to that same
node; it refers to the mask, so use mask_id.
src/drawing_ctx.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index d41a6fdf..8502eddb 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -715,8 +715,8 @@ impl DrawingCtx {
// Mask
- if let Some(node_id) = mask {
- if let Ok(acquired) = acquired_nodes.acquire(node_id) {
+ if let Some(mask_id) = mask {
+ if let Ok(acquired) = acquired_nodes.acquire(mask_id) {
let mask_node = acquired.get();
match *mask_node.borrow_element() {
@@ -747,7 +747,7 @@ impl DrawingCtx {
rsvg_log!(
"element {} references \"{}\" which is not a mask",
node_name,
- node_id
+ mask_id
);
}
}
@@ -755,7 +755,7 @@ impl DrawingCtx {
rsvg_log!(
"element {} references nonexistent mask \"{}\"",
node_name,
- node_id
+ mask_id
);
}
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]