From 28b8e75211f8ae88b9ac589e0a9e2a51312fe452 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 19 May 2020 11:01:00 -0400 Subject: [PATCH] Fix duplicate time stamp bug when loading legacy schematics. --- eeschema/files-io.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 9e35390743..8ae896b76b 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -447,6 +447,10 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& 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(); }