diff options
author | Devashish Sharma <dsharma@src.gnome.org> | 2006-02-28 18:49:36 +0800 |
---|---|---|
committer | Devashish Sharma <dsharma@src.gnome.org> | 2006-02-28 18:49:36 +0800 |
commit | c8008a3d4766ecb2b0f9d270db7052e5130f09e5 (patch) | |
tree | c6f9a27ce249a4e1b45c323c6e430e7f6984a321 | |
parent | 3367c2866c65127b6680f7368f2d3c832b55e882 (diff) | |
download | gsoc2013-evolution-c8008a3d4766ecb2b0f9d270db7052e5130f09e5.tar.gz gsoc2013-evolution-c8008a3d4766ecb2b0f9d270db7052e5130f09e5.tar.zst gsoc2013-evolution-c8008a3d4766ecb2b0f9d270db7052e5130f09e5.zip |
Fix for Bug #331998.
svn path=/trunk/; revision=31608
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-reflow.c | 2 |
2 files changed, 9 insertions, 0 deletions
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 <sdevashish@novell.com> + + * 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 <Irene.Huang@sun.com> + 2006-02-24 Srinivasa Ragavan <sragavan@novell.com> ** 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; |