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

This commit is contained in:
Maciej Suminski 2014-03-19 11:16:01 +01:00
parent c11b0bc8a6
commit 696a8a89fe
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}