diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 07e68c9c21..1c02e3dfc9 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -307,6 +307,8 @@ public: wxPoint operator+(const wxSize& s) const { return wxPoint(x + s.GetWidth(), y + s.GetHeight()); } wxPoint operator-(const wxSize& s) const { return wxPoint(x - s.GetWidth(), y - s.GetHeight()); } + + wxPoint operator-() const { return wxPoint(-x, -y); } }; // ---------------------------------------------------------------------------