From e2fc198b9e9fd826e2d535a2896b3db11fe98e3a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 29 Mar 2015 22:16:14 +0200 Subject: [PATCH] roundedbox: Fix a copy/paste error This caused shadows to not be drawn in certain situations when overlayed via a popover animation. https://bugzilla.gnome.org/show_bug.cgi?id=746862 --- gtk/gtkroundedbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index 4944918d1b..f95751e3d5 100644 --- a/gtk/gtkroundedbox.c +++ b/gtk/gtkroundedbox.c @@ -626,7 +626,7 @@ _gtk_rounded_box_contains_rectangle (const GtkRoundedBox *box, if (x1 < box->box.x || y1 < box->box.y || x2 >= box->box.x + box->box.width || - y2 >= box->box.y + box->box.width) + y2 >= box->box.y + box->box.height) return FALSE; if (x1 < box->box.x + box->corner[GTK_CSS_TOP_LEFT].horizontal &&