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:
parent
9624ef4f2e
commit
66a0f60b4c
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue