Redraw pins when placing when they are modified.
Fixes: lp:1839363 * https://bugs.launchpad.net/kicad/+bug/1839363
This commit is contained in:
parent
4d53ff9811
commit
c5fb8518d2
|
@ -138,10 +138,12 @@ int LIB_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
|
||||||
m_frame->RefreshItem( item );
|
m_frame->RefreshItem( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
|
if( item->IsMoving() )
|
||||||
|
m_toolMgr->RunAction( ACTIONS::refreshPreview, true );
|
||||||
if( !item->IsMoving() )
|
else
|
||||||
{
|
{
|
||||||
|
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
|
||||||
|
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
|
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 );
|
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
|
||||||
|
|
||||||
if( !item->IsMoving() )
|
if( item->IsMoving() )
|
||||||
|
m_toolMgr->RunAction( ACTIONS::refreshPreview, true );
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
|
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
|
||||||
|
|
Loading…
Reference in New Issue