[gtk+] Stack: Fix copy-paste error



commit 37b23927c49c7ba0ed1bafcfe0993d348867b224
Author: Daniel Boles <dboles src gnome org>
Date:   Tue Aug 1 19:18:39 2017 +0100

    Stack: Fix copy-paste error
    
    This fixes Coverity CID 1452217.

 gtk/gtkstack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index b77bde2..f64f763 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2098,7 +2098,7 @@ gtk_stack_size_allocate (GtkWidget           *widget,
           if (valign == GTK_ALIGN_CENTER || valign == GTK_ALIGN_FILL)
             child_allocation.y = (allocation->height - child_allocation.height) / 2;
           else if (valign == GTK_ALIGN_END)
-            child_allocation.x = (allocation->height - child_allocation.height);
+            child_allocation.y = (allocation->height - child_allocation.height);
         }
 
       gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation, -1, &child_clip);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]