]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/region.cpp
A few tweaks and cleanups
[wxWidgets.git] / src / os2 / region.cpp
index 2e65b85d01e170c538b341b9b6785916c074d081..5404bf64db3871f91175111420abec12a01513b6 100644 (file)
@@ -225,7 +225,7 @@ wxObjectRefData *wxRegion::CreateData() const
     return new wxRegionRefData;
 }
 
     return new wxRegionRefData;
 }
 
-wxObjectRefData *wxRegion::CloneData(wxObjectRefData *data) const
+wxObjectRefData *wxRegion::CloneData(const wxObjectRefData *data) const
 {
     return new wxRegionRefData(*(wxRegionRefData *)data);
 }
 {
     return new wxRegionRefData(*(wxRegionRefData *)data);
 }
@@ -414,7 +414,7 @@ void wxRegion::GetBox(
                             ,&vRect
                            );
         x       = vRect.xLeft;
                             ,&vRect
                            );
         x       = vRect.xLeft;
-        y       = vRect.yTop;
+        y       = vRect.yBottom;
         vWidth  = vRect.xRight - vRect.xLeft;
         vHeight = vRect.yTop - vRect.yBottom;
     }
         vWidth  = vRect.xRight - vRect.xLeft;
         vHeight = vRect.yTop - vRect.yBottom;
     }