Generate refresh preview events when objects are moving.

Fixes: lp:1829683
* https://bugs.launchpad.net/kicad/+bug/1829683
This commit is contained in:
Jeff Young 2019-05-20 11:22:36 +01:00
parent fbffb9ae1e
commit 323ecada8d
1 changed files with 11 additions and 3 deletions

View File

@ -161,7 +161,7 @@ TOOL_ACTION EE_ACTIONS::doDelete( "eeschema.InteractiveEdit.doDelete",
TOOL_ACTION EE_ACTIONS::deleteItemCursor( "eeschema.InteractiveEdit.deleteTool", TOOL_ACTION EE_ACTIONS::deleteItemCursor( "eeschema.InteractiveEdit.deleteTool",
AS_GLOBAL, 0, AS_GLOBAL, 0,
_( "DoDelete Items" ), _( "DoDelete clicked items" ), _( "Delete Items" ), _( "Delete clicked items" ),
delete_xpm, AF_ACTIVATE ); delete_xpm, AF_ACTIVATE );
TOOL_ACTION EE_ACTIONS::breakWire( "eeschema.InteractiveEdit.breakWire", TOOL_ACTION EE_ACTIONS::breakWire( "eeschema.InteractiveEdit.breakWire",
@ -596,7 +596,11 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
m_toolMgr->PostEvent( EVENTS::SelectedItemsModified ); m_toolMgr->PostEvent( EVENTS::SelectedItemsModified );
if( !item->IsMoving() ) if( item->IsMoving() )
{
m_toolMgr->RunAction( EE_ACTIONS::refreshPreview );
}
else
{ {
if( selection.IsHover() ) if( selection.IsHover() )
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true ); m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
@ -774,7 +778,11 @@ int SCH_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( EE_ACTIONS::refreshPreview );
}
else
{ {
if( selection.IsHover() ) if( selection.IsHover() )
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true ); m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );