aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorVibha Yadav <yvibha@novell.com>2010-12-01 19:54:46 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:05 +0800
commit0cb4f364e3b72fe048aebcc5bb09cb3c2a91f594 (patch)
tree3003d302082f352c42641c14aa69ac625b15dbd3 /calendar
parent7a5cdd78b7aa00aa23e74a1bad4e357e40a1aa1d (diff)
downloadgsoc2013-evolution-0cb4f364e3b72fe048aebcc5bb09cb3c2a91f594.tar.gz
gsoc2013-evolution-0cb4f364e3b72fe048aebcc5bb09cb3c2a91f594.tar.zst
gsoc2013-evolution-0cb4f364e3b72fe048aebcc5bb09cb3c2a91f594.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.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-day-view.c11
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;