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
5f1d11fc
Commit
5f1d11fc
authored
Jul 25, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete usage getCells in INDEX function
parent
0d4c6744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
cell/model/FormulaObjects/lookupandreferenceFunctions.js
cell/model/FormulaObjects/lookupandreferenceFunctions.js
+9
-13
No files found.
cell/model/FormulaObjects/lookupandreferenceFunctions.js
View file @
5f1d11fc
...
...
@@ -491,28 +491,24 @@
}
else
if
(
cElementType
.
cellsRange
===
arg0
.
type
)
{
var
ws
=
arg0
.
getWS
(),
bbox
=
arg0
.
getBBox0
();
if
(
bbox
.
r1
==
bbox
.
r2
)
{
/*одна строка*/
res
=
ws
.
getRange3
(
bbox
.
r1
,
bbox
.
c1
+
arg1
-
1
,
bbox
.
r1
,
bbox
.
c1
+
arg1
-
1
).
getCells
()[
0
].
getName
(
);
res
=
new
cRef
(
res
,
ws
);
if
(
bbox
.
r1
==
=
bbox
.
r2
)
{
/*одна строка*/
res
=
new
Asc
.
Range
(
bbox
.
c1
+
arg1
-
1
,
bbox
.
r1
,
bbox
.
c1
+
arg1
-
1
,
bbox
.
r1
);
res
=
new
cRef
(
res
.
getName
()
,
ws
);
}
else
{
if
(
arg1
==
0
&&
arg2
>
0
)
{
var
_a1
=
ws
.
getRange3
(
bbox
.
r1
,
bbox
.
c1
+
arg2
-
1
,
bbox
.
r1
,
bbox
.
c2
+
arg2
-
1
)
.
getCells
()[
0
].
getName
(),
_a2
=
ws
.
getRange3
(
bbox
.
r2
,
bbox
.
c1
+
arg2
-
1
,
bbox
.
r2
,
bbox
.
c2
+
arg2
-
1
)
.
getCells
()[
0
].
getName
();
res
=
new
cArea
(
_a1
.
toString
()
+
"
:
"
+
_a2
.
toString
(),
ws
);
if
(
0
===
arg1
&&
arg2
>
0
)
{
res
=
new
Asc
.
Range
(
bbox
.
c1
+
arg2
-
1
,
bbox
.
r1
,
bbox
.
c1
+
arg2
-
1
,
bbox
.
r2
);
res
=
new
cArea
(
res
.
getName
(),
ws
);
}
else
{
if
(
arg1
>
Math
.
abs
(
bbox
.
r1
-
bbox
.
r2
)
+
1
||
arg2
>
Math
.
abs
(
bbox
.
c1
-
bbox
.
c2
)
+
1
)
{
res
=
new
cError
(
cErrorType
.
bad_reference
);
}
else
{
res
=
new
cRef
(
ws
.
getRange3
(
bbox
.
r1
+
arg1
-
1
,
bbox
.
c1
+
arg2
-
1
,
bbox
.
r1
+
arg1
-
1
,
bbox
.
c1
+
arg2
-
1
)
.
getCells
()[
0
].
getName
(),
ws
);
res
=
new
Asc
.
Range
(
bbox
.
c1
+
arg2
-
1
,
bbox
.
r1
+
arg1
-
1
,
bbox
.
c1
+
arg2
-
1
,
bbox
.
r1
+
arg1
-
1
)
res
=
new
cRef
(
res
.
getName
(),
ws
);
}
}
}
}
else
if
(
cElementType
.
cell
===
arg0
.
type
||
cElementType
.
cell3D
===
arg0
.
type
)
{
if
((
arg1
==
0
||
arg1
==
1
)
&&
(
arg2
==
0
||
arg2
==
1
))
{
if
((
0
===
arg1
||
1
===
arg1
)
&&
(
0
===
arg2
||
1
===
arg2
))
{
res
=
arg0
.
getValue
();
}
}
else
{
...
...
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