From 1983b442645e686e3eef1ae29669e4874b6e8d4a Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 2 Sep 2006 13:31:47 +0000 Subject: fixed a bug in day_write_pad() which could cause a misplacement of the line between events and appointments --- src/day.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/day.c') diff --git a/src/day.c b/src/day.c index 282d5c4..635ad7b 100755 --- a/src/day.c +++ b/src/day.c @@ -1,4 +1,4 @@ -/* $calcurse: day.c,v 1.6 2006/08/25 19:50:08 culot Exp $ */ +/* $calcurse: day.c,v 1.7 2006/09/02 13:31:47 culot Exp $ */ /* * Calcurse - text-based organizer @@ -248,7 +248,7 @@ void day_write_pad(long date, int width, int length, int incolor, int colr) struct day_item_s *p; int line, item_number, max_pos; const int x_pos = 0; - bool draw_line = true; + bool draw_line = false; line = item_number = 0; max_pos = length; @@ -271,6 +271,7 @@ void day_write_pad(long date, int width, int length, int incolor, int colr) display_item(apad->ptrwin, item_number - incolor, p->mesg, width - 4, line, x_pos); line++; + draw_line = true; } else { /* Draw a line between events and appointments. */ if (line > 0 && draw_line){ -- cgit v1.2.3-54-g00ecf