diff options
author | Vibha Yadav <yvibha@novell.com> | 2010-12-01 19:54:46 +0800 |
---|---|---|
committer | Vibha Yadav <yvibha@novell.com> | 2010-12-01 19:54:46 +0800 |
commit | 5549b3311ff09e4ea83eeedd5e48e16e5530a0d3 (patch) | |
tree | 47f36bc41fb31fd6791b668a55717bd8dc9a2028 | |
parent | 277eeef43f8dc619e7463d65d2fff60c8b7e29a5 (diff) | |
download | gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar.gz gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar.bz2 gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar.lz gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar.xz gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.tar.zst gsoc2013-evolution-5549b3311ff09e4ea83eeedd5e48e16e5530a0d3.zip |
Bug #602183 (bnc) - Crash in Mini Calendar View
Calendar view crashes on updating the scroll bar of newly created
layout for events. Hence tries to access the event's canvas which
is not yet drawn.
Hence calling scroll bar update after drawing long events.
-rw-r--r-- | calendar/gui/e-day-view.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index f81afae485..ea2b13c2f7 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -4633,17 +4633,18 @@ e_day_view_check_layout (EDayView *day_view) day_view->days_shown, day_view->day_starts, &rows_in_top_display); - - if (day_view->rows_in_top_display != rows_in_top_display) { - day_view->rows_in_top_display = rows_in_top_display; - e_day_view_update_top_scroll (day_view, FALSE); - } } if (day_view->long_events_need_layout || day_view->long_events_need_reshape) e_day_view_reshape_long_events (day_view); + if (day_view->long_events_need_layout + && day_view->rows_in_top_display != rows_in_top_display) { + day_view->rows_in_top_display = rows_in_top_display; + e_day_view_update_top_scroll (day_view, FALSE); + } + day_view->long_events_need_layout = FALSE; day_view->long_events_need_reshape = FALSE; |