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
56f38a40
Commit
56f38a40
authored
Aug 23, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 35718
parent
e72034a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
cell/model/FormulaObjects/parserFormula.js
cell/model/FormulaObjects/parserFormula.js
+4
-3
No files found.
cell/model/FormulaObjects/parserFormula.js
View file @
56f38a40
...
...
@@ -441,6 +441,7 @@ var c_msPerDay = c_sPerDay * 1000;
var
rx_sFuncPref
=
/_xlfn
\.
/i
;
var
cNumFormatFirstCell
=
-
1
;
var
cNumFormatNone
=
-
2
;
var
cNumFormatNull
=
-
3
;
Date
.
prototype
.
excelNullDate1900
=
Date
.
UTC
(
1899
,
11
,
30
,
0
,
0
,
0
);
Date
.
prototype
.
excelNullDate1904
=
Date
.
UTC
(
1904
,
0
,
1
,
0
,
0
,
0
);
...
...
@@ -652,7 +653,7 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
/** @constructor */
function
cBaseType
(
val
)
{
this
.
numFormat
=
n
ull
;
this
.
numFormat
=
cNumFormatN
ull
;
this
.
value
=
val
;
}
...
...
@@ -5130,7 +5131,7 @@ parserFormula.prototype.parse = function(local, digitDelim) {
var
elemArr
=
[],
_tmp
,
numFormat
=
cNumFormatFirstCell
,
currentElement
=
null
;
for
(
var
i
=
0
;
i
<
this
.
outStack
.
length
;
i
++
)
{
currentElement
=
this
.
outStack
[
i
];
if
(
currentElement
.
name
==
"
(
"
)
{
if
(
currentElement
.
name
==
=
"
(
"
)
{
continue
;
}
if
(
currentElement
.
type
===
cElementType
.
operator
||
currentElement
.
type
===
cElementType
.
func
)
{
...
...
@@ -5145,7 +5146,7 @@ parserFormula.prototype.parse = function(local, digitDelim) {
arg
.
unshift
(
elemArr
.
pop
());
}
_tmp
=
currentElement
.
Calculate
(
arg
,
opt_bbox
,
opt_defName
,
this
.
ws
);
if
(
null
!
=
_tmp
.
numFormat
)
{
if
(
cNumFormatNull
!=
=
_tmp
.
numFormat
)
{
numFormat
=
_tmp
.
numFormat
;
}
else
if
(
0
>
numFormat
||
cNumFormatNone
===
currentElement
.
numFormat
)
{
numFormat
=
currentElement
.
numFormat
;
...
...
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