Browse Source

Prevent infinite loop when grid size not defined.

pull/15/head
Jeff Young 6 years ago
parent
commit
c71c1d4d1a
  1. 2
      common/gal/opengl/opengl_gal.cpp

2
common/gal/opengl/opengl_gal.cpp

@ -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…
Cancel
Save