From: David Elliott Date: Mon, 10 Jan 2005 03:07:43 +0000 (+0000) Subject: Corrected some assertions (m_region.m_refData vs. m_refData) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/936170f4070cb6eac25cbcd0f0015b03a607cec7?ds=sidebyside Corrected some assertions (m_region.m_refData vs. m_refData) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 4ed586112c..99fd7cb8b8 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -443,7 +443,7 @@ wxRegionIteratorGeneric wxRegionIteratorGeneric::operator++(int) wxRect wxRegionIteratorGeneric::GetRect() const { - wxASSERT(m_refData); + wxASSERT(m_region.m_refData); const Box *box = M_REGIONDATA_OF(m_region)->GetBox(m_current); wxASSERT(box); return wxRect @@ -456,7 +456,7 @@ wxRect wxRegionIteratorGeneric::GetRect() const long wxRegionIteratorGeneric::GetX() const { - wxASSERT(m_refData); + wxASSERT(m_region.m_refData); const Box *box = M_REGIONDATA_OF(m_region)->GetBox(m_current); wxASSERT(box); return box->x1; @@ -464,7 +464,7 @@ long wxRegionIteratorGeneric::GetX() const long wxRegionIteratorGeneric::GetY() const { - wxASSERT(m_refData); + wxASSERT(m_region.m_refData); const Box *box = M_REGIONDATA_OF(m_region)->GetBox(m_current); wxASSERT(box); return box->y1; @@ -472,7 +472,7 @@ long wxRegionIteratorGeneric::GetY() const long wxRegionIteratorGeneric::GetW() const { - wxASSERT(m_refData); + wxASSERT(m_region.m_refData); const Box *box = M_REGIONDATA_OF(m_region)->GetBox(m_current); wxASSERT(box); return box->x2 - box->x1; @@ -480,7 +480,7 @@ long wxRegionIteratorGeneric::GetW() const long wxRegionIteratorGeneric::GetH() const { - wxASSERT(m_refData); + wxASSERT(m_region.m_refData); const Box *box = M_REGIONDATA_OF(m_region)->GetBox(m_current); wxASSERT(box); return box->y2 - box->y1;