From 41c6de45e4fdcaffea123b31bd678688c892d610 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 26 Oct 2020 14:53:29 +0000 Subject: [PATCH] Use our Refresh() call, not wxWidgets'. Fixes https://gitlab.com/kicad/code/kicad/issues/6071 --- pcbnew/tools/pcb_editor_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index b9fc5ceb1b..1580468adb 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -1312,7 +1312,7 @@ int PCB_EDITOR_CONTROL::FlipPcbView( const TOOL_EVENT& aEvent ) { view()->SetMirror( !view()->IsMirroredX(), false ); view()->RecacheAllItems(); - frame()->Refresh(); + frame()->GetCanvas()->ForceRefresh(); frame()->OnDisplayOptionsChanged(); return 0; }