Use our Refresh() call, not wxWidgets'.

Fixes https://gitlab.com/kicad/code/kicad/issues/6071
This commit is contained in:
Jeff Young 2020-10-26 14:53:29 +00:00
parent ce5fbb0c58
commit 41c6de45e4
1 changed files with 1 additions and 1 deletions

View File

@ -1312,7 +1312,7 @@ int PCB_EDITOR_CONTROL::FlipPcbView( const TOOL_EVENT& aEvent )
{ {
view()->SetMirror( !view()->IsMirroredX(), false ); view()->SetMirror( !view()->IsMirroredX(), false );
view()->RecacheAllItems(); view()->RecacheAllItems();
frame()->Refresh(); frame()->GetCanvas()->ForceRefresh();
frame()->OnDisplayOptionsChanged(); frame()->OnDisplayOptionsChanged();
return 0; return 0;
} }