When adding new wires due to directly-connected items, don't try and de-select them after an undo. The won't be around anymore.
Fixes: lp:1836218 * https://bugs.launchpad.net/kicad/+bug/1836218
This commit is contained in:
parent
807b8d4cf1
commit
029b624e96
|
@ -80,6 +80,8 @@ bool SCH_MOVE_TOOL::Init()
|
|||
- add preferences option "Drag always selects"
|
||||
*/
|
||||
|
||||
#define STD_VECTOR_REMOVE( v, item ) v.erase( std::remove( v.begin(), v.end(), item ), v.end() )
|
||||
|
||||
|
||||
int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
|
@ -229,6 +231,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
{
|
||||
// Item was added in getConnectedDragItems
|
||||
saveCopyInUndoList( (SCH_ITEM*) item, UR_NEW, appendUndo );
|
||||
STD_VECTOR_REMOVE( m_dragAdditions, item );
|
||||
appendUndo = true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue