summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtkiconviewaccessible.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-11-29 22:14:12 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-11-29 23:10:34 -0500
commita7ed598d3705774327d36664dfcc38384e06aa0b (patch)
treeb94585179063f65d4af100e13abb62de4a86c986 /gtk/a11y/gtkiconviewaccessible.c
parent3519226c5a226bfff7af390a1acad4b321591ad0 (diff)
downloadgtk+-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.c2
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;