Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
3f2fd7d2
Commit
3f2fd7d2
authored
Jun 21, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix builder bug
parent
3a751db5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cell/apiBuilder.js
cell/apiBuilder.js
+1
-1
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+5
-2
No files found.
cell/apiBuilder.js
View file @
3f2fd7d2
...
...
@@ -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
);
...
...
common/Drawings/Format/ChartSpace.js
View file @
3f2fd7d2
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment