Commit c541bea4 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Ensure same hour incidence display on day view

When an event or todo starts and ends within the same hour, ensure
that it is displayed.
parent 1348a767
Pipeline #20983 passed with stage
in 11 minutes and 4 seconds
......@@ -277,7 +277,7 @@ Incidence::List IncidenceModel::hourEvents() const
auto endHour = e->allDay() ? 23 : e->dtEnd().time().hour();
//If the event starts and ends in the same day, we just check the hours; that way recurring events are fetched as well
if( (e->dtStart().date() == e->dtEnd().date()) && (startHour <= m_filter_hour) && (endHour > m_filter_hour) )
if( (e->dtStart().date() == e->dtEnd().date()) && (startHour <= m_filter_hour) && (m_filter_hour <= endHour) )
{
incidences.append(e);
}
......
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