Fix schematic append clear annotation bug.

Clear the annotation of only the appended schematic and any sheets in it's
hierarchy.  Do not clear the annotation of the symbols in the target sheet.

Fixes lp:1805695

https://bugs.launchpad.net/kicad/+bug/1805695
This commit is contained in:
Wayne Stambaugh 2018-12-01 13:42:51 -05:00
parent a61a51f26e
commit 07ebc4df14
1 changed files with 3 additions and 1 deletions

View File

@ -576,6 +576,8 @@ bool SCH_EDIT_FRAME::AppendSchematic()
} }
} }
newScreens.ClearAnnotation();
// Check for duplicate sheet names in the current page. // Check for duplicate sheet names in the current page.
wxArrayString duplicateSheetNames; wxArrayString duplicateSheetNames;
SCH_TYPE_COLLECTOR sheets; SCH_TYPE_COLLECTOR sheets;
@ -622,7 +624,7 @@ bool SCH_EDIT_FRAME::AppendSchematic()
// Clear all annotation in the imported schematic to prevent clashes with existing annotation. // Clear all annotation in the imported schematic to prevent clashes with existing annotation.
// Must be done after updating the symbol links as we need to know about multi-unit parts. // Must be done after updating the symbol links as we need to know about multi-unit parts.
screens.ClearAnnotation(); // screens.ClearAnnotation();
screens.TestDanglingEnds(); screens.TestDanglingEnds();