Respect schematic settings for hidden pins

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17941

(cherry picked from commit b8ccaae403)
This commit is contained in:
Seth Hillbrand 2024-05-03 09:57:58 -07:00
parent ebdfeb4c0a
commit 994c1c971a
1 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,7 @@
#include <sch_junction.h>
#include <sch_marker.h>
#include <sch_no_connect.h>
#include <sch_render_settings.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <lib_shape.h>
@ -1034,8 +1035,12 @@ OPT_TOOL_EVENT EE_SELECTION_TOOL::autostartEvent( TOOL_EVENT* aEvent, EE_GRID_HE
wxCHECK( pin, OPT_TOOL_EVENT() );
if( !pin->IsVisible() && !m_frame->eeconfig()->m_Appearance.show_hidden_pins )
if( !pin->IsVisible()
&& !( m_frame->eeconfig()->m_Appearance.show_hidden_pins
|| m_frame->GetRenderSettings()->m_ShowHiddenPins ) )
{
return OPT_TOOL_EVENT();
}
}
newEvt->SetMousePosition( pos );