]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/region.cpp
Remove now unused GetSelection from the OSX WebKit backend.
[wxWidgets.git] / src / osx / carbon / region.cpp
index 448ae707a915f72ff016d88702a22a642400eb05..99a9875516c9ecae05c0538cb3d29d7fc4790d1a 100644 (file)
@@ -89,8 +89,8 @@ wxRegion::wxRegion(long x, long y, long w, long h)
 wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
 {
     m_refData = new wxRegionRefData(topLeft.x , topLeft.y ,
-                                    topLeft.x - bottomRight.x ,
-                                    topLeft.y - bottomRight.y);
+                                    bottomRight.x - topLeft.x,
+                                    bottomRight.y - topLeft.y);
 }
 
 wxRegion::wxRegion(const wxRect& rect)
@@ -247,7 +247,7 @@ bool wxRegion::DoIsEqual(const wxRegion& region) const
     // There doesn't seem to be any native function for checking the equality
     // of HIShapes so we compute their differences to determine if they are
     // equal.
-    wxRegion r(this);
+    wxRegion r(*this);
     r.Subtract(region);
 
     if ( !r.IsEmpty() )