Push pcbnew grid visibility storage into EDA_DRAW_FRAME
Fixes https://gitlab.com/kicad/code/kicad/issues/4154
This commit is contained in:
parent
c0b03a043e
commit
4ff61318af
|
@ -84,7 +84,6 @@ public:
|
|||
int m_MaxLinksShowed; // in track creation: number of hairwires shown
|
||||
bool m_ShowModuleRatsnest; // When moving a footprint: allows displaying a ratsnest
|
||||
bool m_ShowGlobalRatsnest; // If true, show all
|
||||
bool m_ShowGrid; // Show the grid on the canvas
|
||||
bool m_DisplayRatsnestLinesCurved; // Airwires can be drawn as straight lines (false)
|
||||
// or curved lines (true)
|
||||
|
||||
|
|
|
@ -870,13 +870,13 @@ void PCB_BASE_FRAME::SetFastGrid2()
|
|||
|
||||
bool PCB_BASE_FRAME::IsGridVisible() const
|
||||
{
|
||||
return m_DisplayOptions.m_ShowGrid;
|
||||
return m_drawGrid;
|
||||
}
|
||||
|
||||
|
||||
void PCB_BASE_FRAME::SetGridVisibility( bool aVisible )
|
||||
{
|
||||
m_DisplayOptions.m_ShowGrid = aVisible;
|
||||
m_drawGrid = aVisible;
|
||||
|
||||
// Update the display with the new grid
|
||||
if( GetCanvas() )
|
||||
|
|
|
@ -56,5 +56,4 @@ PCB_DISPLAY_OPTIONS::PCB_DISPLAY_OPTIONS()
|
|||
m_ShowModuleRatsnest = true; // When moving a footprint: allows displaying a ratsnest
|
||||
m_DisplayRatsnestLinesCurved = false;
|
||||
m_ShowGlobalRatsnest = true;
|
||||
m_ShowGrid = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue