aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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:56:28 +0800
commit41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6 (patch)
treed7bd4aedbf4839a870f552ac98f33041a3948e9f /calendar
parent1556f4d447dfca9d3b6ebb605ec899dc7b9a5361 (diff)
downloadgsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar.gz
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar.bz2
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar.lz
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar.xz
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.tar.zst
gsoc2013-evolution-41c2805b1f5d1d3036d820a1fc3e7bc88ffe1dc6.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')
-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 1492cdebd5..f7eecab786 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -576,9 +576,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;