Fix duplicate time stamp bug when loading legacy schematics.

This commit is contained in:
Wayne Stambaugh 2020-05-19 11:01:00 -04:00
parent 14773d073d
commit 28b8e75211
1 changed files with 4 additions and 0 deletions

View File

@ -447,6 +447,10 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
!newFileFormatDlg.IsCheckBoxChecked();
}
// Legacy schematic can have duplicate time stamps so fix that before converting
// to the s-expression format.
schematic.ReplaceDuplicateTimeStamps();
// Allow the schematic to be saved to new file format without making any edits.
OnModify();
}