Loading pcbnew/tools/point_editor.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -338,6 +338,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) controls->ShowCursor( false ); controls->ShowCursor( false ); controls->SetAutoPan( false ); controls->SetAutoPan( false ); controls->SetSnapping( false ); controls->SetSnapping( false ); controls->ForceCursorPosition( false ); } } setTransitions(); setTransitions(); Loading Loading @@ -672,9 +673,9 @@ void POINT_EDITOR::breakOutline( const VECTOR2I& aBreakPoint ) VECTOR2I( outline->GetPos( nextNearestIdx ) ) ); VECTOR2I( outline->GetPos( nextNearestIdx ) ) ); unsigned int nearestDist = side.Distance( aBreakPoint ); unsigned int nearestDist = side.Distance( aBreakPoint ); for( int i = 0; i < outline->GetCornersCount() - 2; ++i ) for( int i = 0; i < outline->GetCornersCount() - 1; ++i ) { { SEG side( VECTOR2I( outline->GetPos( i ) ), VECTOR2I( outline->GetPos( i + 1 ) ) ); side = SEG( VECTOR2I( outline->GetPos( i ) ), VECTOR2I( outline->GetPos( i + 1 ) ) ); unsigned int distance = side.Distance( aBreakPoint ); unsigned int distance = side.Distance( aBreakPoint ); if( distance < nearestDist ) if( distance < nearestDist ) Loading Loading
pcbnew/tools/point_editor.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -338,6 +338,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) controls->ShowCursor( false ); controls->ShowCursor( false ); controls->SetAutoPan( false ); controls->SetAutoPan( false ); controls->SetSnapping( false ); controls->SetSnapping( false ); controls->ForceCursorPosition( false ); } } setTransitions(); setTransitions(); Loading Loading @@ -672,9 +673,9 @@ void POINT_EDITOR::breakOutline( const VECTOR2I& aBreakPoint ) VECTOR2I( outline->GetPos( nextNearestIdx ) ) ); VECTOR2I( outline->GetPos( nextNearestIdx ) ) ); unsigned int nearestDist = side.Distance( aBreakPoint ); unsigned int nearestDist = side.Distance( aBreakPoint ); for( int i = 0; i < outline->GetCornersCount() - 2; ++i ) for( int i = 0; i < outline->GetCornersCount() - 1; ++i ) { { SEG side( VECTOR2I( outline->GetPos( i ) ), VECTOR2I( outline->GetPos( i + 1 ) ) ); side = SEG( VECTOR2I( outline->GetPos( i ) ), VECTOR2I( outline->GetPos( i + 1 ) ) ); unsigned int distance = side.Distance( aBreakPoint ); unsigned int distance = side.Distance( aBreakPoint ); if( distance < nearestDist ) if( distance < nearestDist ) Loading