aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-main-item.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-07-12 20:51:15 +0800
committerMilan Crha <mcrha@redhat.com>2013-07-12 20:51:15 +0800
commit8815dac4fe98710aa26abf50cb78111f86a67638 (patch)
treedbbfee56ae9d129228e6cde24d32b250de74809c /calendar/gui/e-day-view-main-item.c
parent1adc17d921dbfcfa4d5fc6c5ef2c6467a7bc7c56 (diff)
downloadgsoc2013-evolution-8815dac4fe98710aa26abf50cb78111f86a67638.tar.gz
gsoc2013-evolution-8815dac4fe98710aa26abf50cb78111f86a67638.tar.zst
gsoc2013-evolution-8815dac4fe98710aa26abf50cb78111f86a67638.zip
EDayView's event resize abort doesn't always restore original event size
A resize abort of an event's end time in a day view didn't restore original event size, because the drawing function updated event's structure, when it should not. The resize of a start time could be aborted without any problem.
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r--calendar/gui/e-day-view-main-item.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index 8cfa4e4de3..cdf167edd2 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -577,9 +577,7 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
cairo_close_path (cr);
cairo_restore (cr);
}
- }
-
- if (bar_y2 > scroll_flag)
+ } else if (bar_y2 > scroll_flag)
event->end_minute += time_divisions;
else if (bar_y2 < scroll_flag)
event->end_minute -= time_divisions;