X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkroundedbox.c;h=653d27feefaa2008e2f0a5a1dac8171d3cfadad8;hb=ea043cab5718304d9b6170afa2d3f959fc99c718;hp=3fa44e0ab9ee6c0b4147bea87b6007b0c0931fbb;hpb=907447c72d2f4f2659f8c8937facabb213dc7e6a;p=~andy%2Fgtk diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index 3fa44e0ab..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;