Fix infinite loop in grid initialization, Cairo edition
This commit is contained in:
parent
7553cc2651
commit
b578f8b362
|
@ -1539,7 +1539,7 @@ void CAIRO_GAL_BASE::DrawGrid()
|
||||||
drawAxes( worldStartPoint, worldEndPoint );
|
drawAxes( worldStartPoint, worldEndPoint );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !gridVisibility )
|
if( !gridVisibility || gridSize.x == 0 || gridSize.y == 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VECTOR2D gridScreenSize( gridSize );
|
VECTOR2D gridScreenSize( gridSize );
|
||||||
|
|
Loading…
Reference in New Issue