Commit b07f11e5 authored by GoshaZotov's avatar GoshaZotov

add column 1 chart fix error: Uncaught TypeError: Cannot read property...

add column 1 chart fix error: Uncaught TypeError: Cannot read property 'length' of null (if selected 1 empty cell)
parent 6535650b
......@@ -721,7 +721,7 @@ CChartsDrawer.prototype =
{
if(isHBar)
{
if(valAx.scaling.orientation == ORIENTATION_MIN_MAX)
if(valAx.scaling.orientation == ORIENTATION_MIN_MAX && valAx.xPoints)
{
calculateLeft = valAx.xPoints[0].pos;
calculateRight = this.calcProp.widthCanvas / pxToMM - valAx.xPoints[valAx.xPoints.length - 1].pos;
......@@ -732,7 +732,7 @@ CChartsDrawer.prototype =
calculateRight = this.calcProp.widthCanvas / pxToMM - valAx.xPoints[0].pos;
}
}
else if(this.calcProp.heightCanvas != undefined)
else if(this.calcProp.heightCanvas != undefined && valAx.yPoints)
{
if(valAx.scaling.orientation == ORIENTATION_MIN_MAX)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment