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

List:       kde-commits
Subject:    branches/kdepim/enterprise/kdepim/korganizer
From:       Sergio Luis Martins <iamsergio () gmail ! com>
Date:       2010-03-01 1:46:01
Message-ID: 1267407961.243818.31536.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1097371 by smartins:

Only calculate the duration for events.

Fixes kolab/issue4168

MERGE: trunk


 M  +1 -1      koagendaview.cpp  


--- branches/kdepim/enterprise/kdepim/korganizer/koagendaview.cpp #1097370:1097371
@@ -1338,7 +1338,7 @@
   }
 
   if ( incidence->doesRecur() ) {
-    int eventDuration = incDtStart.daysTo( incDtEnd );
+    int eventDuration = event ? incDtStart.daysTo( incDtEnd ) : 0;
 
     // if there's a multiday event that starts before firstVisibleDateTime but ends after
     // lets include it. timesInInterval() ignores incidences that aren't totaly inside
[prev in list] [next in list] [prev in thread] [next in thread] 

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