Don't consider saving SCH_MARKERs
These are ephemeral, view-only elements, so don't include them in our
save map
Fixes https://gitlab.com/kicad/code/kicad/issues/11405
(cherry picked from commit 7eb728ca12
)
This commit is contained in:
parent
3c33e2c046
commit
6c423be36f
|
@ -397,7 +397,11 @@ void SCH_SEXPR_PLUGIN::Format( SCH_SHEET* aSheet )
|
||||||
std::multiset<SCH_ITEM*, decltype( cmp )> save_map( cmp );
|
std::multiset<SCH_ITEM*, decltype( cmp )> save_map( cmp );
|
||||||
|
|
||||||
for( SCH_ITEM* item : screen->Items() )
|
for( SCH_ITEM* item : screen->Items() )
|
||||||
|
{
|
||||||
|
// Markers are not saved, so keep them from being considered below
|
||||||
|
if( item->Type() != SCH_MARKER_T )
|
||||||
save_map.insert( item );
|
save_map.insert( item );
|
||||||
|
}
|
||||||
|
|
||||||
KICAD_T itemType = TYPE_NOT_INIT;
|
KICAD_T itemType = TYPE_NOT_INIT;
|
||||||
SCH_LAYER_ID layer = SCH_LAYER_ID_START;
|
SCH_LAYER_ID layer = SCH_LAYER_ID_START;
|
||||||
|
|
Loading…
Reference in New Issue