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

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

SVN commit 1098115 by smartins:

Backport r933931 by winterz from trunk to e35

Fix calculation of recurring to-do start date/time, for other than the first occurrence.
thanks for the patch Thomas.

MERGE: none


 M  +4 -3      todo.cpp  


--- branches/kdepim/enterprise/kdepim/libkcal/todo.cpp #1098114:1098115
@@ -173,10 +173,11 @@
 
 QDateTime Todo::dtStart( bool first ) const
 {
-  if ( doesRecur() && !first )
-    return mDtRecurrence.addDays( dtDue( first ).daysTo( IncidenceBase::dtStart() ) );
-  else
+  if ( doesRecur() && !first ) {
+    return mDtRecurrence.addDays( dtDue( true ).daysTo( IncidenceBase::dtStart() ) );
+  } else {
     return IncidenceBase::dtStart();
+  }
 }
 
 void Todo::setDtStart( const QDateTime &dtStart )
[prev in list] [next in list] [prev in thread] [next in thread] 

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