]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string): Fall back on underline_minimum_offset for
authorChong Yidong <cyd@stupidchicken.com>
Wed, 3 Dec 2008 04:10:37 +0000 (04:10 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 3 Dec 2008 04:10:37 +0000 (04:10 +0000)
undlerline position.

src/xterm.c

index 4d74910fec7fe21e61dbb45b69dc82eda8c802fe..54833eef366060b76b0f825acb5e2a1847cecee7 100644 (file)
@@ -2765,6 +2765,8 @@ x_draw_glyph_string (s)
                    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);
            }