Fix Symbol editor: some hotkeys are not working (Delete item and Drag item)

Fixes: lp:1741145
https://bugs.launchpad.net/kicad/+bug/1741145
This commit is contained in:
jean-pierre charras 2018-01-06 10:36:56 +01:00
parent b98cc0b937
commit cb60da3bc5
1 changed files with 2 additions and 2 deletions

View File

@ -796,7 +796,7 @@ bool LIB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
if ( !itemInEdit )
SetDrawItem( LocateItemUsingCursor( aPosition ) );
if( IsEditingDrawItem() )
if( GetDrawItem() )
{
cmd.SetId( ID_POPUP_LIBEDIT_DELETE_ITEM );
Process_Special_Functions( cmd );
@ -821,7 +821,7 @@ bool LIB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
{
SetDrawItem( LocateItemUsingCursor( aPosition ) );
if( IsEditingDrawItem() )
if( GetDrawItem() )
{
cmd.SetId( ID_POPUP_LIBEDIT_MODIFY_ITEM );
Process_Special_Functions( cmd );