X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/582381212ea2b8e70e47b85a5d74c352e360fda3..19e30148e18cc99296b26503c155e5cef59045f4:/src/os2/region.cpp diff --git a/src/os2/region.cpp b/src/os2/region.cpp index 2e65b85d01..5404bf64db 100644 --- a/src/os2/region.cpp +++ b/src/os2/region.cpp @@ -225,7 +225,7 @@ wxObjectRefData *wxRegion::CreateData() const return new wxRegionRefData; } -wxObjectRefData *wxRegion::CloneData(wxObjectRefData *data) const +wxObjectRefData *wxRegion::CloneData(const wxObjectRefData *data) const { return new wxRegionRefData(*(wxRegionRefData *)data); } @@ -414,7 +414,7 @@ void wxRegion::GetBox( ,&vRect ); x = vRect.xLeft; - y = vRect.yTop; + y = vRect.yBottom; vWidth = vRect.xRight - vRect.xLeft; vHeight = vRect.yTop - vRect.yBottom; }