Don't do clever snapping logic when drawing a circle

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7131
This commit is contained in:
Roberto Fernandez Bautista 2021-01-15 18:00:39 +00:00 committed by jean-pierre charras
parent 49f454e32b
commit 00918c68f5
1 changed files with 7 additions and 0 deletions

View File

@ -1414,6 +1414,13 @@ bool DRAWING_TOOL::drawSegment( const std::string& aTool, PCB_SHAPE** aGraphic,
started = true;
}
else if( shape == S_CIRCLE )
{
// No clever logic if drawing a circle
preview.Clear();
twoPointManager.Reset();
break;
}
else
{
PCB_SHAPE* snapItem = dyn_cast<PCB_SHAPE*>( grid.GetSnapped() );