projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO done
[wxWidgets.git]
/
include
/
wx
/
geometry.h
diff --git
a/include/wx/geometry.h
b/include/wx/geometry.h
index 80ab7d9bd20b7affdb6df255136e0e12c2cea098..11073dc02beafad0bb54c35761446c375ac9ed4e 100644
(file)
--- a/
include/wx/geometry.h
+++ b/
include/wx/geometry.h
@@
-182,8
+182,11
@@
inline wxPoint2DInt wxPoint2DInt::operator-()
inline wxPoint2DInt& wxPoint2DInt::operator=(const wxPoint2DInt& pt)
{
inline wxPoint2DInt& wxPoint2DInt::operator=(const wxPoint2DInt& pt)
{
- m_x = pt.m_x;
- m_y = pt.m_y;
+ if (this != &pt)
+ {
+ m_x = pt.m_x;
+ m_y = pt.m_y;
+ }
return *this;
}
return *this;
}
@@
-411,8
+414,11
@@
inline wxPoint2DDouble wxPoint2DDouble::operator-()
inline wxPoint2DDouble& wxPoint2DDouble::operator=(const wxPoint2DDouble& pt)
{
inline wxPoint2DDouble& wxPoint2DDouble::operator=(const wxPoint2DDouble& pt)
{
- m_x = pt.m_x;
- m_y = pt.m_y;
+ if (this != &pt)
+ {
+ m_x = pt.m_x;
+ m_y = pt.m_y;
+ }
return *this;
}
return *this;
}