Redraw pins when placing when they are modified.

Fixes: lp:1839363
* https://bugs.launchpad.net/kicad/+bug/1839363
This commit is contained in:
Jeff Young 2019-08-08 14:09:19 +01:00
parent 4d53ff9811
commit c5fb8518d2
1 changed files with 8 additions and 4 deletions

View File

@ -138,10 +138,12 @@ int LIB_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
m_frame->RefreshItem( item );
}
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
if( !item->IsMoving() )
if( item->IsMoving() )
m_toolMgr->RunAction( ACTIONS::refreshPreview, true );
else
{
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
if( selection.IsHover() )
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
@ -185,7 +187,9 @@ int LIB_EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
if( !item->IsMoving() )
if( item->IsMoving() )
m_toolMgr->RunAction( ACTIONS::refreshPreview, true );
else
{
if( selection.IsHover() )
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );