From 616fdc431153891083be5c7bc29b93372caa7413 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 2 Jun 2007 23:38:52 +0000 Subject: [PATCH] Don't use the wxRect* typemaps in the wxRect class git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_gdicmn.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wxPython/src/_gdicmn.i b/wxPython/src/_gdicmn.i index 87b2b5c900..1f3f6439dd 100644 --- a/wxPython/src/_gdicmn.i +++ b/wxPython/src/_gdicmn.i @@ -488,6 +488,9 @@ DocStr(wxRect, width and height properties. In wxPython most palces that expect a wx.Rect can also accept a (x,y,width,height) tuple.", ""); + +%typemap(in) wxRect*; + class wxRect { public: @@ -777,6 +780,9 @@ usually, but not necessarily, the larger one.", ""); %property(Empty, IsEmpty, doc="See `IsEmpty`"); }; +%apply wxRect& { wxRect* }; + + MustHaveApp(wxIntersectRect);