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
476f84be
Commit
476f84be
authored
Sep 15, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #35848
parent
59646e8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
word/Editor/Table.js
word/Editor/Table.js
+7
-6
word/Editor/Table/TableRecalculate.js
word/Editor/Table/TableRecalculate.js
+2
-0
No files found.
word/Editor/Table.js
View file @
476f84be
...
...
@@ -142,11 +142,12 @@ function CTable(DrawingDocument, Parent, Inline, Rows, Cols, TableGrid, bPresent
this
.
TableRowsBottom
=
[];
this
.
HeaderInfo
=
{
Count
:
0
,
// Количество строк, входящих в заголовок
H
:
0
,
// Суммарная высота, занимаемая заголовком
PageIndex
:
0
,
// Страница, на которой лежит исходный заголовок (либо 0, либо 1)
Pages
:
[]
};
HeaderRecalculate
:
false
,
// В данный момент идет пересчет самих заголовков
Count
:
0
,
// Количество строк, входящих в заголовок
H
:
0
,
// Суммарная высота, занимаемая заголовком
PageIndex
:
0
,
// Страница, на которой лежит исходный заголовок (либо 0, либо 1)
Pages
:
[]
};
this
.
Selection
=
{
...
...
@@ -2170,7 +2171,7 @@ CTable.prototype.Get_PageContentStartPos = function(CurPage, RowIndex, CellIndex
var
bHeader
=
false
;
var
Y
=
Pos
.
Y
;
if
(
-
1
!=
this
.
HeaderInfo
.
PageIndex
&&
this
.
HeaderInfo
.
Count
>
0
&&
CurPage
>
this
.
HeaderInfo
.
PageIndex
&&
true
===
this
.
HeaderInfo
.
Pages
[
CurPage
].
Draw
)
if
(
true
!==
this
.
HeaderInfo
.
HeaderRecalculate
&&
-
1
!=
this
.
HeaderInfo
.
PageIndex
&&
this
.
HeaderInfo
.
Count
>
0
&&
CurPage
>
this
.
HeaderInfo
.
PageIndex
&&
true
===
this
.
HeaderInfo
.
Pages
[
CurPage
].
Draw
)
{
Y
=
this
.
HeaderInfo
.
Pages
[
CurPage
].
RowsInfo
[
this
.
HeaderInfo
.
Count
-
1
].
TableRowsBottom
;
bHeader
=
true
;
...
...
word/Editor/Table/TableRecalculate.js
View file @
476f84be
...
...
@@ -1704,6 +1704,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage)
var
X_min
=
-
1
;
if
(
this
.
HeaderInfo
.
Count
>
0
&&
this
.
HeaderInfo
.
PageIndex
!=
-
1
&&
CurPage
>
this
.
HeaderInfo
.
PageIndex
)
{
this
.
HeaderInfo
.
HeaderRecalculate
=
true
;
this
.
HeaderInfo
.
Pages
[
CurPage
]
=
{};
this
.
HeaderInfo
.
Pages
[
CurPage
].
RowsInfo
=
[];
var
HeaderPage
=
this
.
HeaderInfo
.
Pages
[
CurPage
];
...
...
@@ -2124,6 +2125,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage)
this
.
HeaderInfo
.
Pages
[
CurPage
]
=
{};
this
.
HeaderInfo
.
Pages
[
CurPage
].
Draw
=
false
;
}
this
.
HeaderInfo
.
HeaderRecalculate
=
false
;
var
bNextPage
=
false
;
...
...
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