From 52a34d32bb2e104de3ec242ee142ff22842909a4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 11 Jan 2016 22:48:35 -0500 Subject: [PATCH] Fix corner manipulation when growing rounded rects This addresses problems with uneven border radius', pointed out by Lapo. --- gtk/gtkroundedbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index b63b7d51e5..67aed7a786 100644 --- a/gtk/gtkroundedbox.c +++ b/gtk/gtkroundedbox.c @@ -198,8 +198,8 @@ _gtk_rounded_box_grow (GtkRoundedBox *box, } gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_LEFT], left, top); - gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, bottom); - gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, top); + gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, top); + gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, bottom); gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_LEFT], left, bottom); }