Commit 3f2fd7d2 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix builder bug

parent 3a751db5
......@@ -1208,7 +1208,7 @@
if(this.Chart){
var chart = this.Chart.chart;
var plot_area = chart.plotArea;
var oCurChartSettings = AscFormat.DrawingObjectsController.prototype.getPropsFromChart.call(null, this.Chart);
var oCurChartSettings = AscFormat.DrawingObjectsController.prototype.getPropsFromChart.call(AscFormat.DrawingObjectsController.prototype, this.Chart);
var _cur_type = oCurChartSettings.type;
if(AscCommon.g_oChartPresets[_cur_type] && AscCommon.g_oChartPresets[_cur_type][nStyleIndex]){
plot_area.removeCharts(1, plot_area.charts.length - 1);
......
......@@ -12991,7 +12991,9 @@ function parseSeriesHeaders (ws, rangeBBox) {
var nStartIndex;
if (rangeBBox) {
if (rangeBBox.c2 - rangeBBox.c1 > 0) {
for (i = rangeBBox.r1 + 1; i <= rangeBBox.r2; i++) {
var nStartIndex = (rangeBBox.r1 === rangeBBox.r2) ? rangeBBox.r1 : (rangeBBox.r1 + 1);
for (i = nStartIndex; i <= rangeBBox.r2; i++) {
cell = ws.getCell3(i, rangeBBox.c1);
value = cell.getValue();
numFormatType = cell.getNumFormatType();
......@@ -13008,7 +13010,8 @@ function parseSeriesHeaders (ws, rangeBBox) {
}
if (rangeBBox.r2 - rangeBBox.r1 > 0) {
for (i = rangeBBox.c1 + 1; i <= rangeBBox.c2; i++) {
var nStartIndex = (rangeBBox.c1 === rangeBBox.c2) ? rangeBBox.c1 : (rangeBBox.c1 + 1);
for (i = nStartIndex; i <= rangeBBox.c2; i++) {
cell = ws.getCell3(rangeBBox.r1, i);
value = cell.getValue();
......
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