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

List:       kde-commits
Subject:    branches/KDE/4.1/kdepim/kontact/plugins/korganizer
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2008-10-02 14:52:27
Message-ID: 1222959147.265031.30676.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 866989 by tmcguire:

Backport r866647 by tmcguire from trunk to the 4.1 branch:

Fix summary display if the current year is a leap year and the event takes
place next year.
Detected by the failing unit test.



 M  +2 -0      apptsummarywidget.cpp  


--- branches/KDE/4.1/kdepim/kontact/plugins/korganizer/apptsummarywidget.cpp #866988:866989
@@ -367,6 +367,8 @@
   int offset = currentDate.daysTo( eventDate );
   if ( offset < 0 ) {
     days = 365 + offset;
+    if ( QDate::isLeapYear( QDate::currentDate().year() ) )
+      days++;
   } else {
     days = offset;
   }
[prev in list] [next in list] [prev in thread] [next in thread] 

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