Respect schematic settings for hidden pins

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17941
This commit is contained in:
Seth Hillbrand 2024-05-03 09:57:58 -07:00
parent 053a764cf2
commit b8ccaae403
1 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,7 @@
#include <sch_bus_entry.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 <sch_table.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 );