From: Stefan Csomor Date: Thu, 5 Sep 2002 12:42:16 +0000 (+0000) Subject: corrected code for doubles X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1b2a04da9a1d5e87eff03f7eda3ee9e3d0716276 corrected code for doubles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/geometry.h b/include/wx/geometry.h index c332ec0d5b..dacbdd6203 100644 --- a/include/wx/geometry.h +++ b/include/wx/geometry.h @@ -585,9 +585,9 @@ public: { m_x += pt.m_x - (m_x+m_width/2) , m_y += pt.m_y -(m_y+m_height/2); } inline wxOutCode GetOutCode( const wxPoint2DDouble &pt ) const { return (wxOutCode) (( ( pt.m_x < m_x ) ? wxOutLeft : 0 ) + - ( ( pt.m_x >= m_x + m_width ) ? wxOutRight : 0 ) + + ( ( pt.m_x > m_x + m_width ) ? wxOutRight : 0 ) + ( ( pt.m_y < m_y ) ? wxOutTop : 0 ) + - ( ( pt.m_y >= m_y + m_height ) ? wxOutBottom : 0 )); } + ( ( pt.m_y > m_y + m_height ) ? wxOutBottom : 0 )); } inline wxOutCode GetOutcode(const wxPoint2DDouble &pt) const { return GetOutCode(pt) ; } inline bool Contains( const wxPoint2DDouble &pt ) const