Fix off-grid block paste

Fixes: lp:1801625
* https://bugs.launchpad.net/kicad/+bug/1801625
This commit is contained in:
Maciej Suminski 2018-11-05 11:57:30 +01:00
parent 830c5e7db7
commit 293bc52299
1 changed files with 1 additions and 0 deletions

View File

@ -394,6 +394,7 @@ void SCH_EDIT_FRAME::copyBlockItems( PICKED_ITEMS_LIST& aItemsList, const wxPoin
wxPoint center( ( bounds.GetLeft() + bounds.GetRight() ) / 2,
( bounds.GetTop() + bounds.GetBottom() ) / 2 );
center = GetNearestGridPosition( center );
for( unsigned ii = 0; ii < aItemsList.GetCount(); ii++ )
{