From 66a0f60b4c105a7297893bd8b8730b07fc6389b4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 24 Oct 2018 21:59:22 +0100 Subject: [PATCH] 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. --- eeschema/schedit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/schedit.cpp b/eeschema/schedit.cpp index 422ee0e2c0..6ba106411e 100644 --- a/eeschema/schedit.cpp +++ b/eeschema/schedit.cpp @@ -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 ); }