Fix PCB arc edit point order.
This commit is contained in:
parent
7b24167398
commit
3eb3fc9d1e
|
@ -254,10 +254,10 @@ std::shared_ptr<EDIT_POINTS> PCB_POINT_EDITOR::makePoints( EDA_ITEM* aItem )
|
||||||
}
|
}
|
||||||
|
|
||||||
case SHAPE_T::ARC:
|
case SHAPE_T::ARC:
|
||||||
points->AddPoint( shape->GetCenter() );
|
|
||||||
points->AddPoint( shape->GetStart() );
|
points->AddPoint( shape->GetStart() );
|
||||||
points->AddPoint( shape->GetArcMid() );
|
points->AddPoint( shape->GetArcMid() );
|
||||||
points->AddPoint( shape->GetEnd() );
|
points->AddPoint( shape->GetEnd() );
|
||||||
|
points->AddPoint( shape->GetCenter() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::CIRCLE:
|
case SHAPE_T::CIRCLE:
|
||||||
|
@ -693,7 +693,7 @@ int PCB_POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent )
|
||||||
static_cast<PCB_GENERATOR*>( item ) );
|
static_cast<PCB_GENERATOR*>( item ) );
|
||||||
}
|
}
|
||||||
commit.Revert();
|
commit.Revert();
|
||||||
|
|
||||||
inDrag = false;
|
inDrag = false;
|
||||||
frame()->UndoRedoBlock( false );
|
frame()->UndoRedoBlock( false );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue