diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index 2dc11587f2..a9954d61c0 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -1489,11 +1489,8 @@ int PCB_SELECTION_TOOL::selectSheetContents( const TOOL_EVENT& aEvent ) int PCB_SELECTION_TOOL::selectSameSheet( const TOOL_EVENT& aEvent ) { - if( !selectCursor( true ) ) - return 0; - // this function currently only supports footprints since they are only on one sheet. - auto item = m_selection.Front(); + EDA_ITEM* item = m_selection.Front(); if( !item ) return 0;