Browse Source
We had been deselecting items after calling edits to be safe in case the item was deleted/exchanged by the edit. The item pointer itself remains valid even when deleting as it is assigned to the undo stack. But it should not remain visible or selected on the schematic if it is removed. This tests for removed items by checking whether it (in the case of first-level BOARD_ITEMS) or its parent (in the case of footprint item components) remain in the view list after editing. If they are still in the view list, then we re-select them. Fixes: lp:1765774 * https://bugs.launchpad.net/kicad/+bug/1765774 Fixes: lp:1775946 * https://bugs.launchpad.net/kicad/+bug/17759465.0
2 changed files with 10 additions and 8 deletions
Loading…
Reference in new issue