X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/582381212ea2b8e70e47b85a5d74c352e360fda3..588b8b7037d2b1c736863c43952b4d3a05c6cf2f:/src/os2/region.cpp?ds=sidebyside 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; }