aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-reflow.c
diff options
context:
space:
mode:
authorMengjie Yu <meng-jie.yu@sun.com>2005-04-29 16:09:55 +0800
committerHarry Lu <haip@src.gnome.org>2005-04-29 16:09:55 +0800
commited13004c60129272797415da45cade65bdc859bc (patch)
tree92d1f869b314a7619a4a14ba9298e1f3af781a90 /widgets/misc/e-reflow.c
parentd85cfcfa5c1d8299f4145c5c3b129d33d2c5964d (diff)
downloadgsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar.gz
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar.bz2
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar.lz
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar.xz
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.tar.zst
gsoc2013-evolution-ed13004c60129272797415da45cade65bdc859bc.zip
we should not do any layout adjustment if the item doesn't exist.
2005-04-28 Mengjie Yu <meng-jie.yu@sun.com> * gal/widgets/e-reflow.c: (do_adjustment): we should not do any layout adjustment if the item doesn't exist. Fixes #302275 svn path=/trunk/; revision=29248
Diffstat (limited to 'widgets/misc/e-reflow.c')
-rw-r--r--widgets/misc/e-reflow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c
index b4d5d03025..4c48505c38 100644
--- a/widgets/misc/e-reflow.c
+++ b/widgets/misc/e-reflow.c
@@ -168,8 +168,11 @@ do_adjustment (gpointer user_data)
gfloat value, min_value, max_value;
EReflow *reflow = user_data;
- adj = gtk_layout_get_hadjustment (GTK_LAYOUT (GNOME_CANVAS_ITEM (reflow)->canvas));
row = reflow->cursor_row;
+ if (row == -1)
+ return FALSE;
+
+ adj = gtk_layout_get_hadjustment (GTK_LAYOUT (GNOME_CANVAS_ITEM (reflow)->canvas));
value = adj->value;
min_value = reflow->items[row]->x2 - adj->page_size;