diff options
author | Milan Crha <mcrha@redhat.com> | 2013-07-12 20:51:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-07-12 20:51:15 +0800 |
commit | 8815dac4fe98710aa26abf50cb78111f86a67638 (patch) | |
tree | dbbfee56ae9d129228e6cde24d32b250de74809c /calendar/gui/e-day-view-main-item.c | |
parent | 1adc17d921dbfcfa4d5fc6c5ef2c6467a7bc7c56 (diff) | |
download | gsoc2013-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.c | 4 |
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; |