[librsvg/librsvg-2.44] 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/librsvg-2.44] NodeChars.measure(): Oops, actually add the width to the running length
- Date: Wed, 12 Dec 2018 01:49:48 +0000 (UTC)
commit 2faf6a784f3a94b9e5d1cd688826cd9f3ffb6ab6
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 2f0ff799..d597eace 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -106,7 +106,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]