7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-07 18:35:32 +00:00

Position relative: don't run with no selection

This commit is contained in:
John Beard 2025-01-24 20:24:41 +08:00
parent 43be371f83
commit 0011586372

View File

@ -170,6 +170,9 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
positionRelativeClientSelectionFilter,
!m_isFootprintEditor /* prompt user regarding locked items */ );
if( selection.Empty() )
return 0;
if( m_isFootprintEditor && !frame()->GetModel() )
return 0;