Remove normally unused code from Move function.

Fixes https://gitlab.com/kicad/code/kicad/issues/13222
This commit is contained in:
Alex 2022-12-21 19:06:26 +03:00
parent 089d8b9cc1
commit 75053cfc57
1 changed files with 0 additions and 10 deletions

View File

@ -571,16 +571,6 @@ int EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, const wxString& aCommi
else if( !m_dragging && !evt->IsAction( &ACTIONS::refreshPreview ) ) else if( !m_dragging && !evt->IsAction( &ACTIONS::refreshPreview ) )
{ {
// Prepare to start dragging // Prepare to start dragging
if( !evt->IsAction( &PCB_ACTIONS::move )
&& !evt->IsAction( &PCB_ACTIONS::moveWithReference )
&& !evt->IsAction( &PCB_ACTIONS::moveIndividually )
&& !evt->IsAction( &PCB_ACTIONS::packAndMoveFootprints )
&& cfg->m_TrackDragAction != TRACK_DRAG_ACTION::MOVE )
{
if( invokeInlineRouter( PNS::DM_ANY ) )
break;
}
editFrame->HideSolderMask(); editFrame->HideSolderMask();
m_dragging = true; m_dragging = true;