summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-06-08 15:34:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-06-08 15:34:30 +0000
commit16400b3a1a896f0708c77b76473eaea2e3232e11 (patch)
treef80f97cbd23480e195d70913f6aa06c3a23a7067 /gtk/gtkviewport.c
parentd3ba9631d0b6f0d118d04729fd0bdf9c5a6d42cf (diff)
downloadgdk-pixbuf-16400b3a1a896f0708c77b76473eaea2e3232e11.tar.gz
Fix bug with set_adjustment (viewport, NULL);
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with set_adjustment (viewport, NULL);
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index e32b2bac6..2a63f4e11 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -441,7 +441,7 @@ viewport_set_adjustment (GtkViewport *viewport,
GtkAdjustment **adjustmentp = ADJUSTMENT_POINTER (viewport, orientation);
gboolean value_changed;
- if (adjustment == *adjustmentp)
+ if (adjustment && adjustment == *adjustmentp)
return;
if (!adjustment)