diff --git a/eeschema/sch_no_connect.h b/eeschema/sch_no_connect.h index 150712c8b2..d31c832c06 100644 --- a/eeschema/sch_no_connect.h +++ b/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 GetConnectionPoints() const override; diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index 237266228f..3f0c952fa6 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/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; }