Fix corner manipulation when growing rounded rects

This addresses problems with uneven border radius',
pointed out by Lapo.
This commit is contained in:
Matthias Clasen 2016-01-11 22:48:35 -05:00
parent 7e5952c4ea
commit 52a34d32bb

View File

@ -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);
}