Use parent's transform when moving SCH_FIELDs.
Fixes: lp:1827873 * https://bugs.launchpad.net/kicad/+bug/1827873
This commit is contained in:
parent
a76bcc204f
commit
e5151ed639
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue