X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29149a64916d6fdc53e445adca9ef83bc58fb6c3..6285be722384e07c2587e769dce7cabb8adbd31b:/src/gtk/region.cpp diff --git a/src/gtk/region.cpp b/src/gtk/region.cpp index 5c11a0acf3..2c31667721 100644 --- a/src/gtk/region.cpp +++ b/src/gtk/region.cpp @@ -351,6 +351,7 @@ bool wxRegion::Intersect( const wxRegion& region ) } // we need to update the rect list as well +#if OLDCODE wxList& list = *GetRectList(); wxNode *node = list.First(); while (node) @@ -372,7 +373,7 @@ bool wxRegion::Intersect( const wxRegion& region ) node = node->Next(); } - +#endif return TRUE; } @@ -765,10 +766,8 @@ wxCoord wxRegionIterator::GetH() const wxRect wxRegionIterator::GetRect() const { wxRect r; - wxNode *node = m_region.GetRectList()->Nth( m_current ); - - if (node) - r = *((wxRect*)node->Data()); + if( HaveRects() ) + r = ((wxRIRefData*)m_refData)->m_rects[m_current]; return r; }