[librsvg: 19/37] text.rs: Oops, use the child when iterating, not the parent node
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 19/37] text.rs: Oops, use the child when iterating, not the parent node
- Date: Fri, 28 Dec 2018 03:25:34 +0000 (UTC)
commit 06a81e1c49c0919baa6cec00f289c248ef2f6a3a
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Oct 31 13:47:56 2018 -0600
text.rs: Oops, use the child when iterating, not the parent node
rsvg_internals/src/text.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index 69f4d0c9..b0164caa 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -266,7 +266,7 @@ fn children_to_chunks(
for child in node.children() {
match child.get_type() {
- NodeType::Chars => node.with_impl(|chars: &NodeChars| {
+ NodeType::Chars => child.with_impl(|chars: &NodeChars| {
let span = chars.make_span(&child, &values);
let num_chunks = chunks.len();
@@ -279,12 +279,12 @@ fn children_to_chunks(
}
}),
- NodeType::TSpan => node.with_impl(|tspan: &NodeTSpan| {
+ NodeType::TSpan => child.with_impl(|tspan: &NodeTSpan| {
let cascaded = CascadedValues::new(cascaded, &child);
tspan.to_chunks(&child, &cascaded, chunks, x, y);
}),
- NodeType::TRef => node.with_impl(|tref: &NodeTRef| {
+ NodeType::TRef => child.with_impl(|tref: &NodeTRef| {
let cascaded = CascadedValues::new(cascaded, &child);
tref.to_chunks(&child, &cascaded, chunks, x, y);
}),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]