]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkroundedbox.c
label: Fix memleak
[~andy/gtk] / gtk / gtkroundedbox.c
index 3fa44e0ab9ee6c0b4147bea87b6007b0c0931fbb..653d27feefaa2008e2f0a5a1dac8171d3cfadad8 100644 (file)
@@ -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;