}
// we need to update the rect list as well
+#if OLDCODE
wxList& list = *GetRectList();
wxNode *node = list.First();
while (node)
node = node->Next();
}
-
+#endif
return TRUE;
}
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;
}