summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-18 15:11:51 (UTC)
committer zautrix <zautrix>2005-03-18 15:11:51 (UTC)
commit66bc0202d4e2306f7029362fe09d0c7ab0e7cc36 (patch) (side-by-side diff)
treeeafee97f377c32339488833065313c2494e1f5a5
parent414cb038cbe353f2fdb90969bc2531b687acc85f (diff)
downloadkdepimpi-66bc0202d4e2306f7029362fe09d0c7ab0e7cc36.zip
kdepimpi-66bc0202d4e2306f7029362fe09d0c7ab0e7cc36.tar.gz
kdepimpi-66bc0202d4e2306f7029362fe09d0c7ab0e7cc36.tar.bz2
rec fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/komonthview.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 004ff50..cb69832 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -1261,7 +1261,10 @@ void KOMonthView::updateView()
if ( event->doesRecur() ) {
bool last;
+ qDebug("********************************************** ");
+ qDebug("Event summary: %s ", event->summary().latin1());
QDateTime incidenceStart = event->recurrence()->getPreviousDateTime( QDateTime( mStartDate ) , &last );
QDateTime incidenceEnd;
int eventlen = event->dtStart().date().daysTo ( event->dtEnd().date() );
+ qDebug("eventlen %d ", eventlen);
bool invalid = false;
while( true ) {
@@ -1286,5 +1289,5 @@ void KOMonthView::updateView()
break;
invalid = true;
- //qDebug("invalid %s", event->summary().latin1());
+ qDebug("invalid %s", event->summary().latin1());
incidenceStart = QDateTime( mStartDate ).addSecs( -2 );;
}
@@ -1292,10 +1295,16 @@ void KOMonthView::updateView()
break;
bool ok;
+ qDebug("TRY next occurence %s ", incidenceStart.toString().latin1());
incidenceStart = event->getNextOccurence( incidenceStart.addSecs( 1 ) ,&ok );
- if ( ! ok )
+ if ( ! ok ) {
+ qDebug("NOT OK ");
break;
- if ( incidenceStart.date() > endDate )
+ }
+ if ( incidenceStart.date() > endDate ) {
+ qDebug("incidenceStart.date() > endDate ");
break;
}
+ qDebug("next occurence %s ", incidenceStart.toString().latin1());
+ }
} else { // no recur
int st = event->dtStart().date().daysTo( endDate );