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:
parent
43be371f83
commit
0011586372
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user