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:
parent
ebdfeb4c0a
commit
994c1c971a
|
@ -49,6 +49,7 @@
|
||||||
#include <sch_junction.h>
|
#include <sch_junction.h>
|
||||||
#include <sch_marker.h>
|
#include <sch_marker.h>
|
||||||
#include <sch_no_connect.h>
|
#include <sch_no_connect.h>
|
||||||
|
#include <sch_render_settings.h>
|
||||||
#include <sch_sheet.h>
|
#include <sch_sheet.h>
|
||||||
#include <sch_sheet_pin.h>
|
#include <sch_sheet_pin.h>
|
||||||
#include <lib_shape.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() );
|
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();
|
return OPT_TOOL_EVENT();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
newEvt->SetMousePosition( pos );
|
newEvt->SetMousePosition( pos );
|
||||||
|
|
Loading…
Reference in New Issue