Fixed refreshing after flipping the view

This commit is contained in:
Maciej Suminski 2016-12-12 11:50:46 +01:00
parent 7ad5fca6de
commit 027515f4e1
2 changed files with 4 additions and 1 deletions

View File

@ -511,6 +511,9 @@ void VIEW::SetViewport( const BOX2D& aViewport )
void VIEW::SetMirror( bool aMirrorX, bool aMirrorY ) void VIEW::SetMirror( bool aMirrorX, bool aMirrorY )
{ {
m_gal->SetFlip( aMirrorX, aMirrorY ); m_gal->SetFlip( aMirrorX, aMirrorY );
// Redraw everything
MarkDirty();
} }

View File

@ -1139,5 +1139,5 @@ void PCB_EDIT_FRAME::OnFlipPcbView( wxCommandEvent& evt )
auto view = GetGalCanvas()->GetView(); auto view = GetGalCanvas()->GetView();
view->SetMirror( evt.IsChecked(), false ); view->SetMirror( evt.IsChecked(), false );
view->RecacheAllItems(); view->RecacheAllItems();
GetGalCanvas()->ForceRefresh(); Refresh();
} }