[librsvg: 1/37] NodeChars.measure(): Oops, actually add the width to the running length
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/37] NodeChars.measure(): Oops, actually add the width to the running length
- Date: Fri, 28 Dec 2018 03:24:03 +0000 (UTC)
commit 6047295ccef03352cd40c6ad1532ae63c02b56d2
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Oct 29 17:57:42 2018 -0600
NodeChars.measure(): Oops, actually add the width to the running length
Why did none of the tests catch this? Probably because we don't
have chained tspans?
rsvg_internals/src/text.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index 5e6a4d41..d7c8a190 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -108,7 +108,7 @@ impl NodeChars {
let layout = self.create_layout(node, values, draw_ctx);
let (width, _) = layout.get_size();
- *length = f64::from(width) / f64::from(pango::SCALE);
+ *length += f64::from(width) / f64::from(pango::SCALE);
}
fn render(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]