Fix wxPoint2DInt::operator*= and wxPoint2DInt::operator/= .
These operator functions are respectively adding and subtracting their arguments. Instead let the functions multiply and divide their arguments (like their wxPoint2DDouble counterparts were doing already). See #10946. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
91f25e0bbd
commit
987814bb7c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user