X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a365b7d3f8598b0c7d98a150c47f0211d27437e..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/gtk/region.cpp?ds=sidebyside diff --git a/src/gtk/region.cpp b/src/gtk/region.cpp index e4d59dc1e8..2c31667721 100644 --- a/src/gtk/region.cpp +++ b/src/gtk/region.cpp @@ -766,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; }