From 6418f7bec57888db4b2f86e2b86564601a30ec17 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Sun, 6 Jan 2008 14:00:03 +0000 Subject: [PATCH] * src/roff/troff/node.cpp (left_italic_corrected_node::add_self): Don't remove itself if there is no glyph associated with the node yet. This happens, for example, in this situation: .ll 15000u .ft I x x (\,f --- ChangeLog | 11 +++++++++++ src/roff/troff/node.cpp | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b80effa4..bdb14dcc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-01-06 Werner LEMBERG + + * src/roff/troff/node.cpp (left_italic_corrected_node::add_self): + Don't remove itself if there is no glyph associated with the node + yet. This happens, for example, in this situation: + + .ll 15000u + .ft I + x x + (\,f + 2008-01-05 Werner LEMBERG * man/groff_char.man, man/groff.man: Revised. diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index 28ecfaa0..6b4eed09 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -1,6 +1,6 @@ // -*- C++ -*- /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005, - 2006 + 2006, 2008 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) @@ -5540,8 +5540,12 @@ node *left_italic_corrected_node::add_self(node *nd, hyphen_list **p) nd = n->add_self(nd, p); n = 0; delete this; + return nd; + } + else { + next = nd; + return this; } - return nd; } int left_italic_corrected_node::character_type() -- 2.11.4.GIT