[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    KDateTable patch: (good for 2.0.1)
From:       Charles Samuels <charles () kde ! org>
Date:       2000-10-30 5:08:23
[Download RAW message or body]

This fixes an off-by-one bug in KDateTable.  It's good for 2.0.1, but since 
I'm not maintainer, and I don't know what the requirements for patching are 
and all, I'll just mail the patch here.

-Charles

["kdatetbl.offbyone.diff" (text/english)]

Index: kdatetbl.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdatetbl.cpp,v
retrieving revision 1.27
diff -u -r1.27 kdatetbl.cpp
--- kdatetbl.cpp	2000/08/15 21:42:06	1.27
+++ kdatetbl.cpp	2000/10/30 05:05:50
@@ -243,12 +243,12 @@
       return;
     }
   pos=7*(row-1)+col+1;
-  if(pos<firstday)
+  if(pos<=firstday)
     { // this day is in the previous month
       kapp->beep();
       return;
     }
-  if(firstday+numdays<=pos)
+  if(firstday+numdays<pos)
     { // this date is in the next month
       kapp->beep();
       return;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic