OpenGLGraph: make sure y lines are at least 1
@@ -545,7 +545,7 @@ void OpenGLGraph::CalculateGrid()
interval = settings.visibleArea.y2 - settings.visibleArea.y1; // span of y axis
if (settings.gridYlines > 0)
{
- int tmpLines = settings.dataViewHeight / (2 * settings.gridValuesHeight); //2x to be safe in double scaling steps
+ int tmpLines = 1+settings.dataViewHeight / (2 * settings.gridValuesHeight); //2x to be safe in double scaling steps
float divisor = 1; // current grid spacing
int ylines = settings.gridYlines > tmpLines ? tmpLines : settings.gridYlines;
settings.gridYprec = 0;
