X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..cdbd62d6ff290fd58acd1bc5574dfc79db3a6f70:/src/msw/region.cpp?ds=sidebyside diff --git a/src/msw/region.cpp b/src/msw/region.cpp index fed4cda96b..d8523a072f 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: Fri Oct 24 10:46:34 MET 1997 -// RCS-ID: $Id$ // Copyright: (c) 1997-2002 wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -165,7 +164,8 @@ void wxRegion::Clear() bool wxRegion::DoOffset(wxCoord x, wxCoord y) { - wxCHECK_MSG( M_REGION, false, wxT("invalid wxRegion") ); + const HRGN hrgn = GetHrgn(); + wxCHECK_MSG( hrgn, false, wxT("invalid wxRegion") ); if ( !x && !y ) { @@ -175,7 +175,7 @@ bool wxRegion::DoOffset(wxCoord x, wxCoord y) AllocExclusive(); - if ( ::OffsetRgn(GetHrgn(), x, y) == ERROR ) + if ( ::OffsetRgn(hrgn, x, y) == ERROR ) { wxLogLastError(wxT("OffsetRgn"));