[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:       Allen Winter <winter () kde ! org>
Date:       2008-09-04 2:03:39
Message-ID: 1220493819.735685.12367.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 856885 by winterz:

backport SVN commit 856882 by winterz:

fix display of multiday event when the current day isn't the first day
of that event.


 M  +2 -1      apptsummarywidget.cpp  


--- branches/KDE/4.1/kdepim/kontact/plugins/korganizer/apptsummarywidget.cpp #856884:856885
@@ -146,6 +146,7 @@
       int dayof = 1;
       if ( ev->isMultiDay() ) {
         QDate d = ev->dtStart().date();
+        dayof = d.daysTo( currentDate ) + 1;
         if ( d < currentDate ) {
           d = currentDate;
         }
@@ -154,7 +155,7 @@
             dayof++;
           }
           span++;
-          d=d.addDays( 1 );
+          d = d.addDays( 1 );
         }
       }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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