Browse Source

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

pull/1/head
Maciej Suminski 12 years ago
parent
commit
52791f2375
  1. 2
      pcbnew/ratsnest_data.cpp

2
pcbnew/ratsnest_data.cpp

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

Loading…
Cancel
Save