Allow connections between sheet (pins) and symbols.

Fixes https://gitlab.com/kicad/code/kicad/issues/8305
This commit is contained in:
Jeff Young 2021-05-12 00:06:52 +01:00
parent 12f985f978
commit 2a856890e6
2 changed files with 4 additions and 7 deletions

View File

@ -354,9 +354,10 @@ public:
bool CanConnect( const SCH_ITEM* aItem ) const override
{
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE ) ||
( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_BUS ) ||
( aItem->Type() == SCH_NO_CONNECT_T );
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE )
|| ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_BUS )
|| ( aItem->Type() == SCH_NO_CONNECT_T )
|| ( aItem->Type() == SCH_COMPONENT_T );
}
std::vector<wxPoint> GetConnectionPoints() const override;

View File

@ -594,10 +594,6 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_ITEM* aOriginalItem, wxPoint aPoi
}
case SCH_SHEET_T:
// Dragging a sheet just because it's connected to something else feels a bit like
// the tail wagging the dog, but this could be moved down to the next case.
break;
case SCH_COMPONENT_T:
case SCH_JUNCTION_T:
if( test->IsConnected( aPoint ) )