diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index cee89a91c2..8b6530c78d 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -38,13 +38,13 @@ bool wxRegionBase::IsEqual(const wxRegion& region) const { - if ( m_refData == region.m_refData ) + if ( m_refData == region.GetRefData() ) { // regions are identical, hence equal return true; } - if ( !m_refData || !region.m_refData ) + if ( !m_refData || !region.GetRefData() ) { // one, but not both, of the regions is invalid return false;