diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 01:46:57 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 17:31:58 -0500 |
commit | fe2d2e640bf7a196fd1fe1f2efb7d4ba6382ce4f (patch) | |
tree | cb4061961e4785ce16720d360233a9ed24c34ab5 /src/MultiSink.c | |
parent | 42123013118c42f40873b1b8785c7e5ce2734965 (diff) |
Fix ambiguous 'else' warnings
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/MultiSink.c')
-rw-r--r-- | src/MultiSink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/MultiSink.c b/src/MultiSink.c index 1e60b92..1f37d10 100644 --- a/src/MultiSink.c +++ b/src/MultiSink.c @@ -195,12 +195,13 @@ CharWidth ( return 0; } - if (XwcTextEscapement (fontset, &c, 1) == 0) + if (XwcTextEscapement (fontset, &c, 1) == 0) { if (sink->multi_sink.display_nonprinting) c = _Xaw_atowc('@'); else { c = _Xaw_atowc(XawSP); } + } /* * if more efficiency(suppose one column is one ASCII char) @@ -709,12 +710,13 @@ SetTabs( XA_FIGURE_WIDTH = XInternAtom(XtDisplayOfObject(w), "FIGURE_WIDTH", FALSE); if ( (XA_FIGURE_WIDTH != None) && ( (!XGetFontProperty(font, XA_FIGURE_WIDTH, &figure_width)) || - (figure_width == 0)) ) + (figure_width == 0)) ) { if (font->per_char && font->min_char_or_byte2 <= '$' && font->max_char_or_byte2 >= '$') figure_width = font->per_char['$' - font->min_char_or_byte2].width; else figure_width = font->max_bounds.width; + } if (tab_count > sink->text_sink.tab_count) { sink->text_sink.tabs = (Position *) |