Refresh preview items when Rotate or Mirror during move.

It's not enough to just refresh the canvas because the items are
hidden on the main canvas and copies are placed into the preview
group.
This commit is contained in:
Jeff Young 2018-10-24 21:59:22 +01:00
parent 9624ef4f2e
commit 66a0f60b4c
1 changed files with 6 additions and 0 deletions

View File

@ -953,6 +953,9 @@ void SCH_EDIT_FRAME::OnRotate( wxCommandEvent& aEvent )
RefreshItem( item );
if( item->IsMoving() )
m_canvas->CallMouseCapture( nullptr, wxDefaultPosition, false );
if( item->GetFlags() == 0 )
screen->SetCurItem( NULL );
}
@ -1311,6 +1314,9 @@ void SCH_EDIT_FRAME::OnOrient( wxCommandEvent& aEvent )
RefreshItem( item );
if( item->IsMoving() )
m_canvas->CallMouseCapture( nullptr, wxDefaultPosition, false );
if( item->GetFlags() == 0 )
screen->SetCurItem( NULL );
}