diff options
author | Frederic Culot <calcurse@culot.org> | 2006-09-02 13:31:47 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-09-02 13:31:47 +0000 |
commit | 1983b442645e686e3eef1ae29669e4874b6e8d4a (patch) | |
tree | f85e8b6110d90595df1bc5d7ee39c291d8db71dd /src | |
parent | cc95f9f8ef05048854230a54491a932e4e611efa (diff) | |
download | calcurse-1983b442645e686e3eef1ae29669e4874b6e8d4a.tar.gz calcurse-1983b442645e686e3eef1ae29669e4874b6e8d4a.zip |
fixed a bug in day_write_pad() which could cause a misplacement of the line between events and appointments
Diffstat (limited to 'src')
-rwxr-xr-x | src/day.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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){ |