mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 15:59:17 +00:00
Prevent infinite loop when grid size not defined.
This commit is contained in:
parent
ed9153a786
commit
c71c1d4d1a
@ -1253,7 +1253,7 @@ void OPENGL_GAL::DrawGrid()
|
||||
// force flush
|
||||
nonCachedManager->EndDrawing();
|
||||
|
||||
if( !gridVisibility )
|
||||
if( !gridVisibility || gridSize.x == 0 || gridSize.y == 0 )
|
||||
return;
|
||||
|
||||
VECTOR2D gridScreenSize( gridSize );
|
||||
|
Loading…
Reference in New Issue
Block a user