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
c5828af2
Commit
c5828af2
authored
Dec 06, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete check return value from _getVisibleCell function
💤
parent
86fa708a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+13
-21
No files found.
cell/view/WorksheetView.js
View file @
c5828af2
...
@@ -2527,11 +2527,7 @@
...
@@ -2527,11 +2527,7 @@
}
}
// ToDo подумать, может стоит не брать ячейку из модели (а брать из кеш-а)
// ToDo подумать, может стоит не брать ячейку из модели (а брать из кеш-а)
var
c
=
this
.
_getVisibleCell
(
col
,
row
);
var
c
=
this
.
_getVisibleCell
(
col
,
row
);
if
(
!
c
)
{
continue
;
}
var
bg
=
c
.
getFill
();
var
bg
=
c
.
getFill
();
var
mc
=
null
;
var
mc
=
null
;
var
mwidth
=
0
,
mheight
=
0
;
var
mwidth
=
0
,
mheight
=
0
;
...
@@ -2563,22 +2559,18 @@
...
@@ -2563,22 +2559,18 @@
if
(
bg
===
null
)
{
if
(
bg
===
null
)
{
if
(
col
===
colEnd
&&
col
<
this
.
cols
.
length
-
1
&&
row
<
this
.
rows
.
length
-
1
)
{
if
(
col
===
colEnd
&&
col
<
this
.
cols
.
length
-
1
&&
row
<
this
.
rows
.
length
-
1
)
{
var
c2
=
this
.
_getVisibleCell
(
col
+
1
,
row
);
var
c2
=
this
.
_getVisibleCell
(
col
+
1
,
row
);
if
(
c2
)
{
var
bg2
=
c2
.
getFill
();
var
bg2
=
c2
.
getFill
();
if
(
bg2
!==
null
)
{
if
(
bg2
!==
null
)
{
ctx
.
setFillStyle
(
bg2
)
ctx
.
setFillStyle
(
bg2
)
.
fillRect
(
this
.
cols
[
col
+
1
].
left
-
offsetX
-
this
.
width_1px
,
this
.
rows
[
row
].
top
-
offsetY
-
this
.
height_1px
,
this
.
width_1px
,
this
.
rows
[
row
].
height
+
this
.
height_1px
);
.
fillRect
(
this
.
cols
[
col
+
1
].
left
-
offsetX
-
this
.
width_1px
,
this
.
rows
[
row
].
top
-
offsetY
-
this
.
height_1px
,
this
.
width_1px
,
this
.
rows
[
row
].
height
+
this
.
height_1px
);
}
}
}
var
c3
=
this
.
_getVisibleCell
(
col
,
row
+
1
);
var
c3
=
this
.
_getVisibleCell
(
col
,
row
+
1
);
if
(
c3
)
{
var
bg3
=
c3
.
getFill
();
var
bg3
=
c3
.
getFill
();
if
(
bg3
!==
null
)
{
if
(
bg3
!==
null
)
{
ctx
.
setFillStyle
(
bg3
)
ctx
.
setFillStyle
(
bg3
)
.
fillRect
(
this
.
cols
[
col
].
left
-
offsetX
-
this
.
width_1px
,
this
.
rows
[
row
+
1
].
top
-
offsetY
-
this
.
height_1px
,
this
.
cols
[
col
].
width
+
this
.
width_1px
,
this
.
height_1px
);
.
fillRect
(
this
.
cols
[
col
].
left
-
offsetX
-
this
.
width_1px
,
this
.
rows
[
row
+
1
].
top
-
offsetY
-
this
.
height_1px
,
this
.
cols
[
col
].
width
+
this
.
width_1px
,
this
.
height_1px
);
}
}
}
}
}
continue
;
continue
;
}
}
}
}
...
...
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