From a8b36e90eb3b0488d2a4528f9edbd997c67f1805 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:40:05 +0000 Subject: [PATCH] The unit test will use WX_ASSERT_FAILS_WITH_ASSERT to check DoSetRegion(test/geometry/region.cpp:101) eventually, and the macro could handle exception, not true or false. Change it consistent with other port git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/region.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/x11/region.cpp b/src/x11/region.cpp index ee429864e2..618afd45f5 100644 --- a/src/x11/region.cpp +++ b/src/x11/region.cpp @@ -289,8 +289,7 @@ bool wxRegion::DoGetBox( wxCoord &x, wxCoord &y, wxCoord &w, wxCoord &h ) const bool wxRegion::DoOffset( wxCoord x, wxCoord y ) { - if (!m_refData) - return false; + wxCHECK_MSG( m_refData, false, wxS("invalid region") ); AllocExclusive();