From c8008a3d4766ecb2b0f9d270db7052e5130f09e5 Mon Sep 17 00:00:00 2001 From: Devashish Sharma Date: Tue, 28 Feb 2006 10:49:36 +0000 Subject: Fix for Bug #331998. svn path=/trunk/; revision=31608 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-reflow.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 4d1d6a5507..416470e660 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2006-02-28 Devashish Sharma + + * e-reflow.c :(do_adjustment): Check and see if reflow->items + and reflow->items[row] are NULL or not. + Fixes Bug # 331998. + Patch submitted by Irene Huang + 2006-02-24 Srinivasa Ragavan ** Fixes bug #322789 diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c index 023270cfd4..128f45ba12 100644 --- a/widgets/misc/e-reflow.c +++ b/widgets/misc/e-reflow.c @@ -177,6 +177,8 @@ do_adjustment (gpointer user_data) adj = gtk_layout_get_hadjustment (GTK_LAYOUT (GNOME_CANVAS_ITEM (reflow)->canvas)); value = adj->value; + if ((!reflow->items) || (!reflow->items[row])) + return TRUE; min_value = reflow->items[row]->x2 - adj->page_size; max_value = reflow->items[row]->x1; -- cgit v1.2.3