Browse Source

Fixed refreshing after flipping the view

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
027515f4e1
  1. 3
      common/view/view.cpp
  2. 2
      pcbnew/pcbframe.cpp

3
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();
}

2
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();
}
Loading…
Cancel
Save