use wxIsSameDouble() and wxIsNullDouble() for warning-less double comparison of doubles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,14 +202,14 @@ void wxPoint2DInt::SetVectorAngle( wxDouble degrees )
|
||||
|
||||
wxDouble wxPoint2DDouble::GetVectorAngle() const
|
||||
{
|
||||
if ( m_x == 0 )
|
||||
if ( wxIsNullDouble(m_x) )
|
||||
{
|
||||
if ( m_y >= 0 )
|
||||
return 90;
|
||||
else
|
||||
return 270;
|
||||
}
|
||||
if ( m_y == 0 )
|
||||
if ( wxIsNullDouble(m_y) )
|
||||
{
|
||||
if ( m_x >= 0 )
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user