diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-11-29 22:14:12 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-11-29 23:10:34 -0500 |
commit | a7ed598d3705774327d36664dfcc38384e06aa0b (patch) | |
tree | b94585179063f65d4af100e13abb62de4a86c986 /gtk/a11y/gtkiconviewaccessible.c | |
parent | 3519226c5a226bfff7af390a1acad4b321591ad0 (diff) | |
download | gtk+-a7ed598d3705774327d36664dfcc38384e06aa0b.tar.gz |
GtkIconViewAccessible: Fix a copy-paste error
Don't access vadjustment after checking hadjustment for
not being NULL. Found by Coverity.
Diffstat (limited to 'gtk/a11y/gtkiconviewaccessible.c')
-rw-r--r-- | gtk/a11y/gtkiconviewaccessible.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/a11y/gtkiconviewaccessible.c b/gtk/a11y/gtkiconviewaccessible.c index 49ab31bca6..dbd0c625b1 100644 --- a/gtk/a11y/gtkiconviewaccessible.c +++ b/gtk/a11y/gtkiconviewaccessible.c @@ -708,7 +708,7 @@ gtk_icon_view_item_accessible_is_showing (GtkIconViewItemAccessible *item) if (icon_view->priv->hadjustment) visible_rect.x += gtk_adjustment_get_value (icon_view->priv->hadjustment); visible_rect.y = 0; - if (icon_view->priv->hadjustment) + if (icon_view->priv->vadjustment) visible_rect.y += gtk_adjustment_get_value (icon_view->priv->vadjustment); visible_rect.width = allocation.width; visible_rect.height = allocation.height; |