~cjwatson/groff/charclass

« back to all changes in this revision

Viewing changes to src/roff/troff/node.cpp

  • Committer: Colin Watson
  • Date: 2009-04-12 19:28:24 UTC
  • mfrom: (1817.1.8)
  • Revision ID: cjwatson@debian.org-20090412192824-qdyl4yxxpkumwigw
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1811
1811
{
1812
1812
}
1813
1813
 
 
1814
inline node::~node()
 
1815
{
 
1816
  if (state != 0)
 
1817
    delete state;
 
1818
  if (push_state != 0)
 
1819
    delete push_state;
 
1820
}
 
1821
 
1814
1822
/* glyphs, ligatures, kerns, discretionary breaks */
1815
1823
 
1816
1824
class charinfo_node : public node {
4643
4651
  }
4644
4652
  else {
4645
4653
    hunits rem = x - w*i;
4646
 
    if (rem > H0)
 
4654
    if (rem > H0) {
4647
4655
      if (n->overlaps_horizontally()) {
4648
4656
        if (out->is_on())
4649
4657
          n->tprint(out);
4651
4659
      }
4652
4660
      else
4653
4661
        out->right(rem);
 
4662
    }
4654
4663
    while (--i >= 0)
4655
4664
      if (out->is_on())
4656
4665
        n->tprint(out);