Loading pcbnew/ratsnest_data.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -356,8 +356,8 @@ bool RN_POLY::HitTest( const RN_NODE_PTR& aNode ) const x2 = xOld; y2 = yOld; x2 = xOld; y2 = yOld; } } if( ( xNew < xt ) == ( xt <= xOld ) /* edge "open" at left end */ if( ( xNew < xt ) == ( xt <= xOld ) && /* edge "open" at left end */ && ( yt - y1 ) * ( x2 - x1 ) < ( y2 - y1 ) * ( xt - x1 ) ) (float)( yt - y1 ) * (float)( x2 - x1 ) < (float)( y2 - y1 ) * (float)( xt - x1 ) ) { { inside = !inside; inside = !inside; } } Loading Loading
pcbnew/ratsnest_data.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -356,8 +356,8 @@ bool RN_POLY::HitTest( const RN_NODE_PTR& aNode ) const x2 = xOld; y2 = yOld; x2 = xOld; y2 = yOld; } } if( ( xNew < xt ) == ( xt <= xOld ) /* edge "open" at left end */ if( ( xNew < xt ) == ( xt <= xOld ) && /* edge "open" at left end */ && ( yt - y1 ) * ( x2 - x1 ) < ( y2 - y1 ) * ( xt - x1 ) ) (float)( yt - y1 ) * (float)( x2 - x1 ) < (float)( y2 - y1 ) * (float)( xt - x1 ) ) { { inside = !inside; inside = !inside; } } Loading