[gtk+/gtk-3-6] roundedbox: Fix copy-paste error



commit 984e2e41dd306a987151e1fe1e1987662619cd45
Author: Benjamin Otte <otte redhat com>
Date:   Thu Dec 20 19:51:06 2012 +0100

    roundedbox: Fix copy-paste error
    
    y coordinates don't care about the right value, they want bottom.

 gtk/gtkroundedbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c
index 4aeffcd..2369972 100644
--- a/gtk/gtkroundedbox.c
+++ b/gtk/gtkroundedbox.c
@@ -171,7 +171,7 @@ _gtk_rounded_box_grow (GtkRoundedBox *box,
       box->box.width += left + right;
     }
 
-  if (box->box.height + bottom + right < 0)
+  if (box->box.height + bottom + top < 0)
     {
       box->box.y -= top * box->box.height / (top + bottom);
       box->box.height = 0;



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