From ec037c4616342c1b3976c55db98b775f48e0d455 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 31 Jan 2005 16:29:05 +0000 Subject: fix --- (limited to 'libkcal') diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 0eba6a9..e75154b 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -587,6 +587,7 @@ QPtrList CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted ) QPtrList CalendarLocal::rawEvents( const QDate &start, const QDate &end, bool inclusive ) { + qDebug("CalendarLocal::rawEvents called "); Event *event = 0; QPtrList eventList; diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 28402ae..f9e1e9e 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp @@ -592,7 +592,7 @@ QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const } int year = incidenceStart.date().year(); // workaround for bug in recurrence - if ( count == 100 || year < 1980 || year > 5000 ) { + if ( count == 100 || year < 1000 || year > 5000 ) { return QDateTime (); } incidenceStart = incidenceStart.addSecs( 1 ); @@ -608,7 +608,6 @@ QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const if ( type() =="Todo" ) { if ( ((Todo*)this)->hasDueDate() ) incidenceStart = ((Todo*)this)->dtDue(); - } } if ( incidenceStart > dt ) -- cgit v0.9.0.2