]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/region.cpp
Fixed a bug so wxLC_VRULES works by itself.
[wxWidgets.git] / src / gtk / region.cpp
index e4d59dc1e804b844e5af0249a792fdad2ad67e7f..2c31667721a289500e07d11953029ee3461a2542 100644 (file)
@@ -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;
 }