roundedbox: Fix a copy/paste error
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Mar 2015 20:16:14 +0000 (22:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 29 Mar 2015 20:18:29 +0000 (22:18 +0200)
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

index 4944918d1b9e0092e7ea809a842ea3e707f3c7ff..f95751e3d5810f27868463c5ae82c6503742c91f 100644 (file)
@@ -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 &&