diff options
Diffstat (limited to 'korganizer')
-rw-r--r-- | korganizer/koagendaview.cpp | 2 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 256c4d0dd..e45493ab2 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -1170,7 +1170,7 @@ void KOAgendaView::changeIncidenceDisplayAdded( Incidence *incidence ) for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { curDate = *dit; // FIXME: This breaks with recurring multi-day events! - if ( incidence->recursOn( curDate ) ) { + if ( incidence->recursOn( curDate, calendar() ) ) { insertIncidence( incidence, curDate ); } } diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index f54a6a183..85d9049b6 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -970,7 +970,7 @@ void KOMonthView::changeIncidenceDisplayAdded( Incidence *incidence, MonthViewCe if ( incidence->doesRecur() ) { for ( uint i = 0; i < mCells.count(); ++i ) { - if ( incidence->recursOn( mCells[i]->date() ) ) { + if ( incidence->recursOn( mCells[i]->date(), calendar() ) ) { // handle multiday events int length = gdv.startDate().daysTo( gdv.endDate().addSecs( floats ? 0 : -1 ).date() ); |