From 69339f341b34c072b7c862001be5b44135c13b52 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 17 May 2019 01:41:49 +0100 Subject: [PATCH] Don't double-collect refs, values, etc. They were already collected in the fields case. Fixes: lp:1828701 * https://bugs.launchpad.net/kicad/+bug/1828701 --- eeschema/sch_component.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 4e05326813..69c3d86016 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -1627,25 +1627,25 @@ SEARCH_RESULT SCH_COMPONENT::Visit( INSPECTOR aInspector, void* aTestData, } } - if( stype == SCH_LOCATE_ANY_T || stype == SCH_FIELD_LOCATE_REFERENCE_T ) + if( stype == SCH_FIELD_LOCATE_REFERENCE_T ) { if( SEARCH_QUIT == aInspector( GetField( REFERENCE ), (void*) this ) ) return SEARCH_QUIT; } - if( stype == SCH_LOCATE_ANY_T || stype == SCH_FIELD_LOCATE_VALUE_T ) + if( stype == SCH_FIELD_LOCATE_VALUE_T ) { if( SEARCH_QUIT == aInspector( GetField( VALUE ), (void*) this ) ) return SEARCH_QUIT; } - if( stype == SCH_LOCATE_ANY_T || stype == SCH_FIELD_LOCATE_FOOTPRINT_T ) + if( stype == SCH_FIELD_LOCATE_FOOTPRINT_T ) { if( SEARCH_QUIT == aInspector( GetField( FOOTPRINT ), (void*) this ) ) return SEARCH_QUIT; } - if( stype == SCH_LOCATE_ANY_T || stype == SCH_FIELD_LOCATE_DATASHEET_T ) + if( stype == SCH_FIELD_LOCATE_DATASHEET_T ) { if( SEARCH_QUIT == aInspector( GetField( DATASHEET ), (void*) this ) ) return SEARCH_QUIT;