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
0497050b
Commit
0497050b
authored
Jun 26, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setFill history
parent
9b17e62d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+19
-8
No files found.
cell/model/WorkbookElems.js
View file @
0497050b
...
@@ -2525,7 +2525,14 @@ StyleManager.prototype =
...
@@ -2525,7 +2525,14 @@ StyleManager.prototype =
fill
.
bg
=
val
;
fill
.
bg
=
val
;
val
=
fill
;
val
=
fill
;
}
}
return
this
.
_setProperty
(
oItemWithXfs
,
val
,
"
fill
"
,
g_StyleCache
.
addFill
);
var
oRes
=
this
.
_setProperty
(
oItemWithXfs
,
val
,
"
fill
"
,
g_StyleCache
.
addFill
);
if
(
oRes
.
oldVal
)
{
oRes
.
oldVal
=
oRes
.
oldVal
.
bg
;
}
if
(
oRes
.
newVal
)
{
oRes
.
newVal
=
oRes
.
newVal
.
bg
;
}
return
oRes
;
},
},
setBorder
:
function
(
oItemWithXfs
,
val
)
setBorder
:
function
(
oItemWithXfs
,
val
)
{
{
...
@@ -2749,14 +2756,18 @@ StyleManager.prototype =
...
@@ -2749,14 +2756,18 @@ StyleManager.prototype =
return
this
.
_add
(
this
.
xfs
,
newXf
);
return
this
.
_add
(
this
.
xfs
,
newXf
);
};
};
StyleCache
.
prototype
.
_add
=
function
(
container
,
newVal
)
{
StyleCache
.
prototype
.
_add
=
function
(
container
,
newVal
)
{
var
hash
=
newVal
.
getHash
();
if
(
undefined
===
newVal
.
getIndexNumber
())
{
var
res
=
container
.
vals
[
hash
];
var
hash
=
newVal
.
getHash
();
if
(
!
res
)
{
var
res
=
container
.
vals
[
hash
];
newVal
.
setIndexNumber
(
container
.
count
++
);
if
(
!
res
)
{
container
.
vals
[
hash
]
=
newVal
;
newVal
.
setIndexNumber
(
container
.
count
++
);
res
=
newVal
;
container
.
vals
[
hash
]
=
newVal
;
res
=
newVal
;
}
return
res
;
}
else
{
return
newVal
;
}
}
return
res
;
};
};
var
g_StyleCache
=
new
StyleCache
();
var
g_StyleCache
=
new
StyleCache
();
...
...
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