Don't try to post-process an empty clipboard paste.
Fixes: lp:1831364 * https://bugs.launchpad.net/kicad/+bug/1831364
This commit is contained in:
parent
6ac273264d
commit
dfc2fe3929
|
@ -607,6 +607,9 @@ int LIB_EDIT_TOOL::Paste( const TOOL_EVENT& aEvent )
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !newPart )
|
||||||
|
return -1;
|
||||||
|
|
||||||
m_frame->SaveCopyInUndoList( part );
|
m_frame->SaveCopyInUndoList( part );
|
||||||
m_selectionTool->ClearSelection();
|
m_selectionTool->ClearSelection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue