kicad/eeschema/sch_plugins
Wayne Stambaugh 62297e63a2 Fix crash when saving pasted root sheet symbols.
The paste code creates invalid KIID_PATH objects with a zero length.  All
paths must include the root KIID at a minimum.  Code was added to prune
the invalid paths and some defensive code was adding to the formatter to
prevent the crash in case there are other paths where someone generates
a zero length path.

Pruning orphaned instance data does not work when loading schematics prior
to version 7 because the paths did not include the root sheet UUID.  Once
the file is saved to V7 or later, the next load will prune any orphaned or
invalid instance data for the current project.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16245

(cherry picked from commit 764df1d107)
2023-12-03 13:27:34 -05:00
..
altium Altium schematic: support Line dash styles and colors. 2023-09-11 18:33:34 +03:00
cadstar CADSTAR Sch: TERMATTR may have more than one attribute subnode 2023-03-26 14:55:06 +00:00
database Database: handle more possible datatype exceptions 2023-11-30 22:26:02 +00:00
eagle Handle Eagle user-defined attributes. 2023-05-06 21:11:16 +01:00
kicad Fix crash when saving pasted root sheet symbols. 2023-12-03 13:27:34 -05:00
legacy Use v6 code to read arcs from legacy symbol libraries. 2023-11-07 23:20:56 +03:00
sch_lib_plugin_cache.cpp Add cli export of symbols from kicad libraries 2022-12-12 22:44:26 -05:00
sch_lib_plugin_cache.h Add cli export of symbols from kicad libraries 2022-12-12 22:44:26 -05:00