aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-02 13:31:47 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-02 13:31:47 +0000
commit1983b442645e686e3eef1ae29669e4874b6e8d4a (patch)
treef85e8b6110d90595df1bc5d7ee39c291d8db71dd
parentcc95f9f8ef05048854230a54491a932e4e611efa (diff)
downloadcalcurse-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
-rwxr-xr-xsrc/day.c5
1 files changed, 3 insertions, 2 deletions
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){