X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkroundedbox.c;h=653d27feefaa2008e2f0a5a1dac8171d3cfadad8;hb=c6fbdb67f3dc86cf49f2ac5ac8c072f4e586fd29;hp=4aeffcde055f10734b0f6aa398a6ab8b86b71a9d;hpb=dd9957769196f138262a7bad1a525ff174cc1df4;p=~andy%2Fgtk diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index 4aeffcde0..653d27fee 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; @@ -284,7 +284,7 @@ _gtk_rounded_box_guess_length (const GtkRoundedBox *box, GtkCssSide side) { double length; - GtkCssCorner before, after; + GtkCssSide before, after; before = side; after = (side + 1) % 4;