From 49787d04feef8ff699326e54d5991a36d8ef74bb Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 11 Apr 2012 16:58:05 +0200 Subject: Bug #584143 - Global Search Function withing Calendar --- calendar/gui/e-day-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 89694506f1..7b4fecfb0a 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -2515,6 +2515,9 @@ e_day_view_set_selected_time_range (ECalendarView *cal_view, work_day_start_hour = e_cal_model_get_work_day_start_hour (model); work_day_start_minute = e_cal_model_get_work_day_start_minute (model); + if (start_time == end_time) + end_time += e_calendar_view_get_time_divisions (cal_view) * 60; + /* Set the selection. */ start_in_grid = e_day_view_convert_time_to_grid_position (day_view, start_time, -- cgit v1.2.3