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
5215fa61
Commit
5215fa61
authored
8 years ago
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33111
parent
bd9cb14e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletion
+51
-1
word/Editor/Table.js
word/Editor/Table.js
+51
-1
No files found.
word/Editor/Table.js
View file @
5215fa61
...
...
@@ -10762,7 +10762,10 @@ CTable.prototype =
this
.
Internal_CreateNewGrid
(
Rows_info
);
// Возможен случай, когда у нас остались строки, полностью состоящие из объединенных вертикально ячеек
// Пробегаемся по всем ячейкам и смотрим на их вертикальное объединение, было ли оно нарушено
this
.
private_CorrectVerticalMerge
();
// Возможен случай, когда у нас остались строки, полностью состоящие из объединенных вертикально ячеек
for
(
var
CurRow
=
this
.
Content
.
length
-
1
;
CurRow
>=
0
;
CurRow
--
)
{
var
bRemove
=
true
;
...
...
@@ -13448,6 +13451,53 @@ CTable.prototype.IncDec_Indent = function(bIncrease)
this
.
CurCell
.
Content
.
Paragraph_IncDecIndent
(
bIncrease
);
}
};
CTable
.
prototype
.
private_CorrectVerticalMerge
=
function
()
{
// Пробегаемся по всем ячейкам и смотрим на их вертикальное объединение, было ли оно нарушено
for
(
var
nCurRow
=
0
,
nRowsCount
=
this
.
Content
.
length
;
nCurRow
<
nRowsCount
;
++
nCurRow
)
{
var
oRow
=
this
.
Content
[
nCurRow
];
var
nGridCol
=
oRow
.
Get_Before
().
GridBefore
;
for
(
var
nCurCell
=
0
,
nCellsCount
=
oRow
.
Get_CellsCount
();
nCurCell
<
nCellsCount
;
++
nCurCell
)
{
var
oCell
=
oRow
.
Get_Cell
(
nCurCell
);
var
nVMergeType
=
oCell
.
Get_VMerge
();
var
nGridSpan
=
oCell
.
Get_GridSpan
();
if
(
vmerge_Continue
===
nVMergeType
)
{
var
bNeedReset
=
true
;
if
(
0
!==
nCurRow
)
{
var
oPrevRow
=
this
.
Content
[
nCurRow
-
1
];
var
nPrevGridCol
=
oPrevRow
.
Get_Before
().
GridBefore
;
for
(
var
nPrevCell
=
0
,
nPrevCellsCount
=
oPrevRow
.
Get_CellsCount
();
nPrevCell
<
nPrevCellsCount
;
++
nPrevCell
)
{
var
oPrevCell
=
oPrevRow
.
Get_Cell
(
nPrevCell
);
var
nPrevGridSpan
=
oPrevCell
.
Get_GridSpan
();
if
(
nPrevGridCol
===
nGridCol
)
{
if
(
nPrevGridSpan
===
nGridSpan
)
bNeedReset
=
false
;
break
;
}
else
if
(
nPrevGridCol
>
nGridCol
)
break
;
nPrevGridCol
+=
nPrevGridSpan
;
}
}
if
(
true
===
bNeedReset
)
oCell
.
Set_VMerge
(
vmerge_Restart
);
}
nGridCol
+=
nGridSpan
;
}
}
};
//----------------------------------------------------------------------------------------------------------------------
// Класс CTableLook
//----------------------------------------------------------------------------------------------------------------------
...
...
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