]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/region.cpp
wxUniv compilation fixes in themed border drawing code
[wxWidgets.git] / src / gtk / region.cpp
index 57b6b02ffc0b8df714eda6b46a80b37c2ed26bc3..964ae16316061c75ddcd15dfedc6c28218a8f810 100644 (file)
@@ -455,3 +455,23 @@ wxRect wxRegionIterator::GetRect() const
 
     return r;
 }
+
+wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
+{
+    wxDELETEA(m_rects);
+
+    m_current = ri.m_current;
+    m_numRects = ri.m_numRects;
+    if ( m_numRects )
+    {
+        m_rects = new wxRect[m_numRects];
+        for ( unsigned int n = 0; n < m_numRects; n++ )
+            m_rects[n] = ri.m_rects[n];
+    }
+    else
+    {
+        m_rects = NULL;
+    }
+
+    return *this;
+}