Commit 41c2805b authored by Milan Crha's avatar Milan Crha
Browse files

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.
parent 1556f4d4
......@@ -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;
......
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