Fix infinite loop in grid initialization, Cairo edition

This commit is contained in:
Jon Evans 2019-05-31 20:51:23 -04:00
parent 7553cc2651
commit b578f8b362
1 changed files with 1 additions and 1 deletions

View File

@ -1539,7 +1539,7 @@ void CAIRO_GAL_BASE::DrawGrid()
drawAxes( worldStartPoint, worldEndPoint );
}
if( !gridVisibility )
if( !gridVisibility || gridSize.x == 0 || gridSize.y == 0 )
return;
VECTOR2D gridScreenSize( gridSize );