From c47e316032c5e6d916bab7520b4244ff8ca60925 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 17 Jun 2000 12:39:03 +0000 Subject: Made cells with strikeout on have a line from the left margin to the right 2000-06-17 Christopher James Lahey * e-cell-text.c: Made cells with strikeout on have a line from the left margin to the right margin, instead of just over the text. svn path=/trunk/; revision=3609 --- widgets/table/e-cell-text.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index c9260ad545..23e0dabfc2 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -597,10 +597,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, gdk_draw_rectangle (drawable, text_view->gc, TRUE, - xpos + x1, ypos + y1 - (font->ascent / 2), - gdk_text_width (font, - lines->text, - lines->length), + x1, ypos + y1 - (font->ascent / 2), + x2 - x1, 1); } ypos += height; @@ -680,10 +678,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, gdk_draw_rectangle (drawable, text_view->gc, TRUE, - xpos + x1, ypos + y1 - (font->ascent / 2), - gdk_text_width (font, - lines->text, - lines->length), + x1, ypos + y1 - (font->ascent / 2), + x2 - x1, 1); } ypos += height; -- cgit v1.2.3