summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--src/roff/troff/node.cpp2
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e32f383b..f42b16b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-09-08 Werner LEMBERG <wl@gnu.org>
+
+ [troff]: Fix hyphenation problem with kerned letters.
+ Problem reported by Steve Izma <sizma@golden.net>.
+
+ * src/roff/troff/node.cpp
+ (kern_pair_node::add_discretionary_hyphen): Compute `tf' using the
+ first node, `n1'. `n2' might be another kerning node, and the
+ `get_tfont' member function isn't defined then.
+
2009-09-01 Michael Cain <mcain6925@comcast.net>
[pic] Fix a border case for arc computation.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 58cf59a8..5136d5aa 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -2343,7 +2343,7 @@ void kern_pair_node::vertical_extent(vunits *min, vunits *max)
node *kern_pair_node::add_discretionary_hyphen()
{
- tfont *tf = n2->get_tfont();
+ tfont *tf = n1->get_tfont();
if (tf) {
if (tf->contains(soft_hyphen_char)) {
color *gcol = n2->get_glyph_color();