Commit 613522e3 authored by Alexander.Trofimov's avatar Alexander.Trofimov

asc_getDisplayEmpty return displayEmptyCellsAs or default if not exist

parent 389cc7eb
......@@ -4835,7 +4835,7 @@ CellArea.prototype = {
return this.lineWeight;
};
sparklineGroup.prototype.asc_getDisplayEmpty = function () {
return this.displayEmptyCellsAs;
return null !== this.displayEmptyCellsAs ? this.displayEmptyCellsAs : Asc.c_oAscEDispBlanksAs.Zero;
};
sparklineGroup.prototype.asc_getMarkersPoint = function () {
return this.markers;
......
......@@ -662,11 +662,7 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
chart_space.displayHidden = oSparklineGroup.displayHidden;
chart_space.displayEmptyCellsAs = oSparklineGroup.displayEmptyCellsAs;
var nDisplayEmptyCellsAs = AscFormat.isRealNumber(oSparklineGroup.displayEmptyCellsAs) ? oSparklineGroup.displayEmptyCellsAs : Asc.c_oAscEDispBlanksAs.Zero;
if(AscFormat.isRealNumber(nDisplayEmptyCellsAs))
{
switch(oSparklineGroup.displayEmptyCellsAs)
switch(oSparklineGroup.asc_getDisplayEmpty())
{
case Asc.c_oAscEDispBlanksAs.Span:
{
......@@ -684,7 +680,6 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
break;
}
}
}
chart_space.displayHidden = oSparklineGroup.displayHidden;
settings.putTitle(c_oAscChartTitleShowSettings.none);
settings.putHorAxisLabel(c_oAscChartTitleShowSettings.none);
......
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