From: Vadim Zeitlin Date: Fri, 3 Dec 2010 12:39:43 +0000 (+0000) Subject: Fix wxRect::SetRightTop() which set the wrong corner. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/afa111d52c46c5b35e2b7fdf6e1356460662eb99?ds=inline Fix wxRect::SetRightTop() which set the wrong corner. SetRightTop() erroneously forwarded to SetTopLeft() instead of SetTopRight(). Closes #12746. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 47de6eefbb..a41a9c5f52 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -725,7 +725,7 @@ public: wxPoint GetTopRight() const { return wxPoint(GetRight(), GetTop()); } wxPoint GetRightTop() const { return GetTopRight(); } void SetTopRight(const wxPoint &p) { SetRight(p.x); SetTop(p.y); } - void SetRightTop(const wxPoint &p) { SetTopLeft(p); } + void SetRightTop(const wxPoint &p) { SetTopRight(p); } wxPoint GetBottomLeft() const { return wxPoint(GetLeft(), GetBottom()); } wxPoint GetLeftBottom() const { return GetBottomLeft(); }