copying (or something).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38964
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxRect subRect(pos.x, pos.y, width, height);
wxRect finalRect(0, 0, size.GetWidth(), size.GetHeight());
wxRect subRect(pos.x, pos.y, width, height);
wxRect finalRect(0, 0, size.GetWidth(), size.GetHeight());
+ if (pos.x < 0)
+ finalRect.width -= pos.x;
+ if (pos.y < 0)
+ finalRect.height -= pos.y;
subRect.Intersect(finalRect);
subRect.Intersect(finalRect);