summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwl <wl>2009-09-08 07:16:53 +0000
committerwl <wl>2009-09-08 07:16:53 +0000
commited9e6dd02683c17ca325f645bb9db74c93304014 (patch)
treecdc3eee74f579efb3992e1a52b2b56a3a3cd16fa /src
parent88563e645a8ab2d41b0b14fb4141d341f70eeb9a (diff)
downloadgroff-ed9e6dd02683c17ca325f645bb9db74c93304014.tar.gz
[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.
Diffstat (limited to 'src')
-rw-r--r--src/roff/troff/node.cpp2
1 files changed, 1 insertions, 1 deletions
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();