-rw-r--r-- | korganizer/koagendaview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 20a5b74..76d5c4b 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -951,10 +951,17 @@ void KOAgendaView::updateConfig() void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) { - // kdDebug() << "KOAgendaView::updateEventDates(): " << item->text() << endl; - //qDebug("KOAgendaView::updateEventDates "); + + + int xxx = item->cellX(); + //qDebug("KOAgendaView::updateEventDates %d %d %d %d %d", xxx, mMinY.at(xxx),mMaxY.at(xxx),item->cellYTop(),item->cellYBottom() ); + if ( mMinY.at(xxx) > item->cellYTop() ) + mMinY.at(xxx) = item->cellYTop(); + if ( mMaxY.at(xxx) < item->cellYBottom() ) + mMaxY.at(xxx) = item->cellYBottom(); + QDateTime startDt,endDt; QDate startDate; int lenInSecs; // if ( type == KOAgenda::RESIZETOP ) |