From 944fe9637d77b09718ad4682b9335310f57a0d54 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 17 Feb 2022 19:02:51 +0000 Subject: [PATCH] Fix error that prevent drawing pin selection highlighting. --- eeschema/sch_painter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index cf90d05185..4fb2440655 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -1981,7 +1981,10 @@ void SCH_PAINTER::draw( SCH_SYMBOL* aSymbol, int aLayer ) return; if( drawingShadows && !( aSymbol->IsBrightened() || aSymbol->IsSelected() ) ) - return; + { + // Don't exit here; symbol may still have selected pins + // return; + } int unit = aSymbol->GetUnitSelection( &m_schematic->CurrentSheet() ); int convert = aSymbol->GetConvert(); @@ -2001,7 +2004,7 @@ void SCH_PAINTER::draw( SCH_SYMBOL* aSymbol, int aLayer ) orientSymbol( &tempSymbol, aSymbol->GetOrientation() ); - for( auto& tempItem : tempSymbol.GetDrawItems() ) + for( LIB_ITEM& tempItem : tempSymbol.GetDrawItems() ) { tempItem.SetFlags( aSymbol->GetFlags() ); // SELECTED, HIGHLIGHTED, BRIGHTENED tempItem.MoveTo( tempItem.GetPosition() + (VECTOR2I) mapCoords( aSymbol->GetPosition() ) );