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
ccdf3a93
Commit
ccdf3a93
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 33735
parent
e28ead51
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
cell/model/FormulaObjects/lookupandreferenceFunctions.js
cell/model/FormulaObjects/lookupandreferenceFunctions.js
+5
-6
No files found.
cell/model/FormulaObjects/lookupandreferenceFunctions.js
View file @
ccdf3a93
...
@@ -845,7 +845,7 @@
...
@@ -845,7 +845,7 @@
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
],
arg2
=
arg
[
2
]
?
arg
[
2
]
:
new
cNumber
(
1
);
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
],
arg2
=
arg
[
2
]
?
arg
[
2
]
:
new
cNumber
(
1
);
function
findMatch
(
a0
,
a1
,
a2
)
{
function
findMatch
(
a0
,
a1
,
a2
)
{
var
a1RowCount
=
a1
.
length
,
a1ColumnCount
=
a1
[
0
].
length
,
a0Value
=
a0
.
getValue
(),
a2Value
=
a2
.
getValue
(),
arr
=
[],
res
=
new
cError
(
cErrorType
.
not_available
),
index
=
-
1
;
var
i
,
a1RowCount
=
a1
.
length
,
a1ColumnCount
=
a1
[
0
].
length
,
a0Value
=
a0
.
getValue
(),
a2Value
=
a2
.
getValue
(),
arr
=
[],
res
=
new
cError
(
cErrorType
.
not_available
),
index
=
-
1
;
if
(
a1RowCount
>
1
&&
a1ColumnCount
>
1
)
{
if
(
a1RowCount
>
1
&&
a1ColumnCount
>
1
)
{
return
new
cError
(
cErrorType
.
not_available
);
return
new
cError
(
cErrorType
.
not_available
);
...
@@ -866,7 +866,7 @@
...
@@ -866,7 +866,7 @@
}
}
if
(
a2Value
==
-
1
)
{
if
(
a2Value
==
-
1
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
]
>=
a0Value
)
{
if
(
arr
[
i
]
>=
a0Value
)
{
index
=
i
;
index
=
i
;
}
else
{
}
else
{
...
@@ -875,14 +875,14 @@
...
@@ -875,14 +875,14 @@
}
}
}
else
if
(
a2Value
==
0
)
{
}
else
if
(
a2Value
==
0
)
{
if
(
cElementType
.
string
===
a0
.
type
)
{
if
(
cElementType
.
string
===
a0
.
type
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
AscCommonExcel
.
searchRegExp2
(
arr
[
i
].
toString
(),
a0Value
))
{
if
(
AscCommonExcel
.
searchRegExp2
(
arr
[
i
].
toString
(),
a0Value
))
{
index
=
i
;
index
=
i
;
break
;
break
;
}
}
}
}
}
else
{
}
else
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
]
==
a0Value
)
{
if
(
arr
[
i
]
==
a0Value
)
{
index
=
i
;
index
=
i
;
break
;
break
;
...
@@ -890,10 +890,9 @@
...
@@ -890,10 +890,9 @@
}
}
}
}
}
else
if
(
a2Value
==
1
)
{
}
else
if
(
a2Value
==
1
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
]
<=
a0Value
)
{
if
(
arr
[
i
]
<=
a0Value
)
{
index
=
i
;
index
=
i
;
}
else
{
break
;
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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