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

List:       kde-core-devel
Subject:    PATCH: kdatetbl date selection bug fix.
From:       Mark Deneen <deneen () bucknell ! edu>
Date:       2000-11-29 0:23:20
[Download RAW message or body]

This patch fixes the bug of not being able to select the last day of a month 
in kdatetbl.  (Try it in the kicker clock date picker!)

Regards,
Mark Deneen

["kdatetbl.patch" (text/x-c++)]

Index: kdatetbl.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdatetbl.cpp,v
retrieving revision 1.28
diff -u -3 -p -r1.28 kdatetbl.cpp
--- kdatetbl.cpp	2000/11/22 20:50:02	1.28
+++ kdatetbl.cpp	2000/11/29 00:15:31
@@ -244,12 +244,12 @@ KDateTable::mousePressEvent(QMouseEvent 
       return;
     }
   pos=7*(row-1)+col+1;
-  if(pos<firstday)
+  if(pos<firstday+1)
     { // this day is in the previous month
       KNotifyClient::beep();
       return;
     }
-  if(firstday+numdays<=pos)
+  if(firstday+numdays+1<=pos)
     { // this date is in the next month
       KNotifyClient::beep();
       return;


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

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