Fixed: pcbnew: new user grid value not immediately active.

This commit is contained in:
charras 2010-02-12 12:52:26 +00:00
parent 4e48640f87
commit e69091af18
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ void WinEDA_BasePcbFrame::InstallGridFrame( const wxPoint& pos )
m_UserGridUnits = dlg.GetGridUnits();
GetScreen()->AddGrid( m_UserGridSize, m_UserGridUnits, ID_POPUP_GRID_USER );
// If the user grid is the current option, recall SetGrid()
// to force new values put in list as current grid value
if( GetScreen()->GetGridId() == ID_POPUP_GRID_USER )
GetScreen()->SetGrid( ID_POPUP_GRID_USER );
DrawPanel->Refresh();
}