diff --git a/include/wx/geometry.h b/include/wx/geometry.h index 37d3a74539..4aa5b1c1ac 100644 --- a/include/wx/geometry.h +++ b/include/wx/geometry.h @@ -202,15 +202,15 @@ inline wxPoint2DInt& wxPoint2DInt::operator-=(const wxPoint2DInt& pt) inline wxPoint2DInt& wxPoint2DInt::operator*=(const wxPoint2DInt& pt) { - m_x = m_x + pt.m_x; - m_y = m_y + pt.m_y; + m_x = m_x * pt.m_x; + m_y = m_y * pt.m_y; return *this; } inline wxPoint2DInt& wxPoint2DInt::operator/=(const wxPoint2DInt& pt) { - m_x = m_x - pt.m_x; - m_y = m_y - pt.m_y; + m_x = m_x / pt.m_x; + m_y = m_y / pt.m_y; return *this; }