roundedbox: Fix copy-paste error

y coordinates don't care about the right value, they want bottom.
This commit is contained in:
Benjamin Otte
2012-12-20 19:51:06 +01:00
parent 0b141481d2
commit 984e2e41dd

View 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;