changeset 100151:7b445d510cbe

(x_draw_glyph_string): Fall back on underline_minimum_offset for undlerline position.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 03 Dec 2008 04:10:37 +0000
parents ae9da081cc10
children 4c0375b8d0fa
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Dec 03 04:10:17 2008 +0000
+++ b/src/xterm.c	Wed Dec 03 04:10:37 2008 +0000
@@ -2765,6 +2765,8 @@
 		    position = s->font->underline_position;
 		  else if (s->font)
 		    position = (s->font->descent + 1) / 2;
+		  else
+		    position = underline_minimum_offset;
 		}
 	      position = max (position, underline_minimum_offset);
 	    }