From 027515f4e13e27cf37a3382c749fb3dbfe7195c9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 12 Dec 2016 11:50:46 +0100 Subject: [PATCH] Fixed refreshing after flipping the view --- common/view/view.cpp | 3 +++ pcbnew/pcbframe.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/view/view.cpp b/common/view/view.cpp index 178c92ba10..f80fc3d22f 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -511,6 +511,9 @@ void VIEW::SetViewport( const BOX2D& aViewport ) void VIEW::SetMirror( bool aMirrorX, bool aMirrorY ) { m_gal->SetFlip( aMirrorX, aMirrorY ); + + // Redraw everything + MarkDirty(); } diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp index c24789c5cf..91a04986d6 100644 --- a/pcbnew/pcbframe.cpp +++ b/pcbnew/pcbframe.cpp @@ -1139,5 +1139,5 @@ void PCB_EDIT_FRAME::OnFlipPcbView( wxCommandEvent& evt ) auto view = GetGalCanvas()->GetView(); view->SetMirror( evt.IsChecked(), false ); view->RecacheAllItems(); - GetGalCanvas()->ForceRefresh(); + Refresh(); }