Commit 628dc715 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Merge remote-tracking branch 'origin/release/20.12'

parents 16a141fb 710794ae
Pipeline #43859 passed with stage
in 12 minutes and 40 seconds
......@@ -572,7 +572,7 @@ void AgendaView::Private::insertIncidence(const KCalendarCore::Incidence::Ptr &i
if (event) {
const QDate firstVisibleDate = mSelectedDates.first();
// its crossing bounderies, lets calculate beginX and endX
const int duration = event->dtStart().toLocalTime().daysTo(event->dtEnd());
const int duration = event->dtStart().toLocalTime().daysTo(event->dtEnd().toLocalTime());
if (insertAtDate < firstVisibleDate) {
beginX = curCol + firstVisibleDate.daysTo(insertAtDate);
endX = beginX + duration;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment