Fixed refreshing after flipping the view
This commit is contained in:
parent
7ad5fca6de
commit
027515f4e1
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue