pcbnew : rotate relatively to selection center
This commit is contained in:
parent
b986797469
commit
094dd2e08c
|
@ -2205,11 +2205,11 @@ bool EDIT_TOOL::updateModificationPoint( PCB_SELECTION& aSelection )
|
||||||
auto pos = item->GetPosition();
|
auto pos = item->GetPosition();
|
||||||
aSelection.SetReferencePoint( VECTOR2I( pos.x, pos.y ) );
|
aSelection.SetReferencePoint( VECTOR2I( pos.x, pos.y ) );
|
||||||
}
|
}
|
||||||
// ...otherwise modify items with regard to the grid-snapped cursor position
|
// ...otherwise modify items with regard to the grid-snapped center position
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_cursor = getViewControls()->GetCursorPosition( true );
|
PCB_GRID_HELPER grid( m_toolMgr, frame()->GetMagneticItemsSettings() );
|
||||||
aSelection.SetReferencePoint( m_cursor );
|
aSelection.SetReferencePoint( grid.BestSnapAnchor( aSelection.GetCenter(), nullptr ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue