Skip to content

Commit

Permalink
fix crash in pns walkaround
Browse files Browse the repository at this point in the history
pns crashes when in walkaround mode and track collides with an arc.
Fix ported from Kicad:
https://gitlab.com/kicad/code/kicad/-/commit/df9cf0a0c39ed99527b0c04e3892e8dd7ed603e7
  • Loading branch information
Moritz Meier committed Sep 15, 2023
1 parent 83c71c5 commit eba98c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 3rd_party/router/kimath/src/geometry/shape_collisions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,10 @@ static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_RECT& aB, int aClea
static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_CIRCLE& aB, int aClearance,
int* aActual, VECTOR2I* aLocation, VECTOR2I* aMTV )
{
wxASSERT_MSG( !aMTV, wxString::Format( wxT( "MTV not implemented for %s : %s collisions" ),
// https://gitlab.com/kicad/code/kicad/-/commit/df9cf0a0c39ed99527b0c04e3892e8dd7ed603e7
/* wxASSERT_MSG( !aMTV, wxString::Format( wxT( "MTV not implemented for %s : %s collisions" ),
aA.TypeName(),
aB.TypeName() ) );
aB.TypeName() ) ); */

const SHAPE_LINE_CHAIN lc( aA );

Expand Down

0 comments on commit eba98c1

Please sign in to comment.