summaryrefslogtreecommitdiff
path: root/gtk/gtkroundedbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-12-20 19:51:06 +0100
committerBenjamin Otte <otte@redhat.com>2012-12-21 19:47:40 +0100
commit308971cc2ef08bd3520efe1214abaf75820dd17d (patch)
tree6be8989a8d864ded10bdb53aa8247bfc21ce05a8 /gtk/gtkroundedbox.c
parenta70e85702f62984a5999bcaaf6355198cc80411d (diff)
downloadgtk+-308971cc2ef08bd3520efe1214abaf75820dd17d.tar.gz
roundedbox: Fix copy-paste error
y coordinates don't care about the right value, they want bottom.
Diffstat (limited to 'gtk/gtkroundedbox.c')
-rw-r--r--gtk/gtkroundedbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c
index 3fa44e0ab9..653d27feef 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;