-rw-r--r-- | korganizer/koagendaview.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 131a345..a01323a 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -1176,2 +1176,3 @@ void KOAgendaView::fillAgenda() int curCol = 0; + int maxCol = mSelectedDates.count()-1; for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { @@ -1188,2 +1189,3 @@ void KOAgendaView::fillAgenda() unsigned int numEvent; + //qDebug("+++++NUMEVENT %d", dayEvents.count()); for(numEvent=0;numEvent<dayEvents.count();++numEvent) { @@ -1209,3 +1211,15 @@ void KOAgendaView::fillAgenda() } else { - //qDebug("days %d %s",endX , currentDate.toString().latin1()); + //qDebug("days endX %d curCol %d max Col %d %s",endX ,curCol, maxCol, currentDate.toString().latin1()); + if ( curCol == maxCol && maxCol+1 < endX ) { + int i; + for ( i = 1; i< endX; ++i ) { + if ( event->recursOn( currentDate.addDays( -i ) ) ) + break; + } + if ( i > maxCol ) { + mAllDayAgenda->insertAllDayItem(event,currentDate,0,curCol); + //qDebug("BINGO "); + } + + } else { QDate dateit = currentDate.addDays( -endX ); @@ -1218,2 +1232,3 @@ void KOAgendaView::fillAgenda() } + } } else { |