Reenable pad enumeration by clicking

Fixes: lp:1708231
* https://bugs.launchpad.net/kicad/+bug/1708231
This commit is contained in:
Maciej Suminski 2017-08-08 16:46:20 +02:00
parent c18d148589
commit 53204e097a
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ int MODULE_EDITOR_TOOLS::EnumeratePads( const TOOL_EVENT& aEvent )
while( OPT_TOOL_EVENT evt = Wait() ) while( OPT_TOOL_EVENT evt = Wait() )
{ {
if( evt->IsDrag( BUT_LEFT ) ) if( evt->IsDrag( BUT_LEFT ) || evt->IsClick( BUT_LEFT ) )
{ {
selectedPads.clear(); selectedPads.clear();
VECTOR2I cursorPos = getViewControls()->GetCursorPosition(); VECTOR2I cursorPos = getViewControls()->GetCursorPosition();