Commit 389cc7eb authored by Alexander.Trofimov's avatar Alexander.Trofimov

asc_getType return type or default type if not exist

parent ae90e533
......@@ -4829,7 +4829,7 @@ CellArea.prototype = {
return this.Id;
};
sparklineGroup.prototype.asc_getType = function () {
return this.type;
return null !== this.type ? this.type : Asc.c_oAscSparklineType.Line;
};
sparklineGroup.prototype.asc_getLineWeight = function () {
return this.lineWeight;
......
......@@ -627,7 +627,7 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
AscFormat.ExecuteNoHistory(function(){
this.ws = worksheetView;
var settings = new AscCommon.asc_ChartSettings();
var nSparklineType = AscFormat.isRealNumber(oSparklineGroup.type) ? oSparklineGroup.type : Asc.c_oAscSparklineType.Line;
var nSparklineType = oSparklineGroup.asc_getType();
switch(nSparklineType)
{
case Asc.c_oAscSparklineType.Column:
......
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