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
This commit is contained in:
@@ -289,8 +289,7 @@ bool wxRegion::DoGetBox( wxCoord &x, wxCoord &y, wxCoord &w, wxCoord &h ) const
|
|||||||
|
|
||||||
bool wxRegion::DoOffset( wxCoord x, wxCoord y )
|
bool wxRegion::DoOffset( wxCoord x, wxCoord y )
|
||||||
{
|
{
|
||||||
if (!m_refData)
|
wxCHECK_MSG( m_refData, false, wxS("invalid region") );
|
||||||
return false;
|
|
||||||
|
|
||||||
AllocExclusive();
|
AllocExclusive();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user