Browse Source

Drag NC markers attached to SCH_SHEET pins when SCH_SHEET is dragged

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18854
pcb_db
JamesJCode 1 year ago
parent
commit
d726097a3f
  1. 4
      eeschema/sch_no_connect.h
  2. 2
      eeschema/tools/sch_move_tool.cpp

4
eeschema/sch_no_connect.h

@ -87,8 +87,8 @@ public:
bool CanConnect( const SCH_ITEM* aItem ) const override
{
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE ) ||
aItem->Type() == SCH_SYMBOL_T;
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE )
|| aItem->Type() == SCH_SYMBOL_T || aItem->Type() == SCH_SHEET_T;
}
std::vector<VECTOR2I> GetConnectionPoints() const override;

2
eeschema/tools/sch_move_tool.cpp

@ -1281,7 +1281,7 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_COMMIT* aCommit, SCH_ITEM* aSelec
// and skip unconnectable items
if( item == aSelectedItem || ( item->Type() != SCH_LINE_T && item->IsSelected() )
|| !item->CanConnect( aSelectedItem ) )
{
// Need to check
continue;
}

Loading…
Cancel
Save