Commit e69091af authored by charras's avatar charras

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

parent 4e48640f
...@@ -30,6 +30,11 @@ void WinEDA_BasePcbFrame::InstallGridFrame( const wxPoint& pos ) ...@@ -30,6 +30,11 @@ void WinEDA_BasePcbFrame::InstallGridFrame( const wxPoint& pos )
m_UserGridUnits = dlg.GetGridUnits(); m_UserGridUnits = dlg.GetGridUnits();
GetScreen()->AddGrid( m_UserGridSize, m_UserGridUnits, ID_POPUP_GRID_USER ); 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(); DrawPanel->Refresh();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment