diff options
author | ru <ru@FreeBSD.org> | 2002-10-15 10:42:07 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-10-15 10:42:07 +0000 |
commit | a3f9c69e038cbe454e9f7638bf9a66ea6da04e32 (patch) | |
tree | 3b1dedd9b39d51a4fd33c4555fe0378b52664537 /contrib | |
parent | 0c4686731a6d8bac541510f36a8c26f2594ea3ba (diff) | |
parent | f78d5fa81a0b603b2741c98c8f48ce8245a18a4c (diff) | |
download | FreeBSD-src-a3f9c69e038cbe454e9f7638bf9a66ea6da04e32.zip FreeBSD-src-a3f9c69e038cbe454e9f7638bf9a66ea6da04e32.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r105151,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/groff/src/roff/troff/node.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/groff/src/roff/troff/node.cc b/contrib/groff/src/roff/troff/node.cc index 650bf0e..58a3cd8 100644 --- a/contrib/groff/src/roff/troff/node.cc +++ b/contrib/groff/src/roff/troff/node.cc @@ -1014,7 +1014,8 @@ void troff_output_file::put_char_width(charinfo *ci, tfont *tf, } else if (tcommand_flag) { if (tbuf_len > 0 && hpos == output_hpos && vpos == output_vpos - && gcol == current_glyph_color && fcol == current_fill_color + && (!gcol || gcol == current_glyph_color) + && (!fcol || fcol == current_fill_color) && kk == tbuf_kern && tbuf_len < TBUF_SIZE) { check_charinfo(tf, ci); @@ -1039,7 +1040,8 @@ void troff_output_file::put_char_width(charinfo *ci, tfont *tf, check_charinfo(tf, ci); // check_output_limits(output_hpos, output_vpos); if (vpos == output_vpos - && gcol == current_glyph_color && fcol == current_fill_color + && (!gcol || gcol == current_glyph_color) + && (!fcol || fcol == current_fill_color) && n > 0 && n < 100 && !force_motion) { put(char(n/10 + '0')); put(char(n%10 + '0')); @@ -1087,7 +1089,8 @@ void troff_output_file::put_char(charinfo *ci, tfont *tf, else { int n = hpos - output_hpos; if (vpos == output_vpos - && gcol == current_glyph_color && fcol == current_fill_color + && (!gcol || gcol == current_glyph_color) + && (!fcol || fcol == current_fill_color) && n > 0 && n < 100) { put(char(n/10 + '0')); put(char(n%10 + '0')); @@ -1162,7 +1165,7 @@ void troff_output_file::set_font(tfont *tf) void troff_output_file::fill_color(color *col) { - if ((current_fill_color == col) || !color_flag) + if (!col || current_fill_color == col || !color_flag) return; flush_tbuf(); put("DF"); @@ -1210,7 +1213,7 @@ void troff_output_file::fill_color(color *col) void troff_output_file::glyph_color(color *col) { - if ((current_glyph_color == col) || !color_flag) + if (!col || current_glyph_color == col || !color_flag) return; flush_tbuf(); put("m"); |