From 293bc52299718d8e7b1fae844ece9ac011067a73 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 5 Nov 2018 11:57:30 +0100 Subject: [PATCH] Fix off-grid block paste Fixes: lp:1801625 * https://bugs.launchpad.net/kicad/+bug/1801625 --- eeschema/block.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index 2a46f5527a..64da3309c2 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -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++ ) {