Use parent's transform when moving SCH_FIELDs.

Fixes: lp:1827873
* https://bugs.launchpad.net/kicad/+bug/1827873
This commit is contained in:
Jeff Young 2019-05-06 16:58:53 +01:00
parent a76bcc204f
commit e5151ed639
2 changed files with 4 additions and 0 deletions

View File

@ -630,6 +630,9 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
item->SetFlags( IS_NEW | IS_MOVED );
m_frame->AddItemToScreenAndUndoList( (SCH_ITEM*) item, i > 0 );
// Reset flags for subsequent move operation
item->SetFlags( IS_NEW | IS_MOVED );
}
if( sheetsPasted )

View File

@ -253,6 +253,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
if( item->IsNew() || ( item->GetParent() && item->GetParent()->IsSelected() ) )
{
// already saved to undo
appendUndo = true;
}
else
{