diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/roff/troff/node.cpp | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -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(); |