Commit 52791f23 authored by Maciej Suminski's avatar Maciej Suminski

Changed cast from float to double in RN_POLY::HitTest.

parent c7e3887b
......@@ -357,7 +357,7 @@ bool RN_POLY::HitTest( const RN_NODE_PTR& aNode ) const
}
if( ( xNew < xt ) == ( xt <= xOld ) && /* edge "open" at left end */
(float)( yt - y1 ) * (float)( x2 - x1 ) < (float)( y2 - y1 ) * (float)( xt - x1 ) )
(double)( yt - y1 ) * (double)( x2 - x1 ) < (double)( y2 - y1 ) * (double)( xt - x1 ) )
{
inside = !inside;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment