From 188954f2d4d99a7c974d9994e7d0fbd58bc77320 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 18 Aug 2014 10:04:26 +0200 Subject: [PATCH] Eeschema: fix incorrect value of m_Flags member (must be 0) of schematic components after loading a schematic file. Previously, m_Flags was set to IS_CHANGED, which is incorrect. --- eeschema/sch_component.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 0a12ef6ad4..2b2155ea17 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -1413,6 +1413,10 @@ bool SCH_COMPONENT::Load( LINE_READER& aLine, wxString& aErrorMsg ) } } + // ensure flags (mainly used in edit) are cleared. + // some changes have set the modified flag + m_Flags = 0; + return true; }