From 6be55966203f700ac8530b8b5e8e28045503c8eb Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 3 Dec 2017 11:50:50 +0100 Subject: [PATCH] Symbol Editor: fix a bug in global pin edit: changes were not always taken in account when saving the symbol in lib. --- eeschema/pinedit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eeschema/pinedit.cpp b/eeschema/pinedit.cpp index fd041ed64f..5aba72b18e 100644 --- a/eeschema/pinedit.cpp +++ b/eeschema/pinedit.cpp @@ -568,8 +568,6 @@ void LIB_EDIT_FRAME::GlobalSetPins( LIB_PIN* aMasterPin, int aId ) if( aMasterPin->Type() != LIB_PIN_T ) return; - OnModify( ); - bool selected = aMasterPin->IsSelected(); for( LIB_PIN* pin = part->GetNextPin(); pin; pin = part->GetNextPin( pin ) ) @@ -600,6 +598,10 @@ void LIB_EDIT_FRAME::GlobalSetPins( LIB_PIN* aMasterPin, int aId ) // but not used here. pin->ClearFlags( IS_CHANGED ); } + + // Now changes are made, call OnModify() to validate thes changes and set + // the global change for UI + OnModify(); }