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
a307ad4e
Commit
a307ad4e
authored
7 years ago
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #34573
parent
f8e1ccf8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
word/Editor/HeaderFooter.js
word/Editor/HeaderFooter.js
+16
-7
No files found.
word/Editor/HeaderFooter.js
View file @
a307ad4e
...
...
@@ -303,16 +303,25 @@ CHeaderFooter.prototype =
return
{
X
:
this
.
Content
.
X
,
Y
:
0
,
XLimit
:
this
.
Content
.
XLimit
,
YLimit
:
0
};
},
Set_CurrentElement
:
function
(
bUpdateStates
)
Set_CurrentElement
:
function
(
bUpdateStates
,
PageAbs
)
{
var
PageIndex
=
-
1
;
if
(
undefined
!==
PageAbs
&&
null
!==
PageAbs
&&
this
.
Parent
.
Pages
[
PageAbs
])
{
if
((
this
===
this
.
Parent
.
Pages
[
PageAbs
].
Header
||
this
===
this
.
Parent
.
Pages
[
PageAbs
].
Footer
))
PageIndex
=
PageAbs
;
}
if
(
-
1
===
PageIndex
)
{
for
(
var
Key
in
this
.
Parent
.
Pages
)
{
var
PIndex
=
Key
|
0
;
if
((
this
===
this
.
Parent
.
Pages
[
PIndex
].
Header
||
this
===
this
.
Parent
.
Pages
[
PIndex
].
Footer
)
&&
(
-
1
===
PageIndex
||
PageIndex
>
PIndex
))
PageIndex
=
PIndex
;
}
}
this
.
Parent
.
CurHdrFtr
=
this
;
this
.
Parent
.
WaitMouseDown
=
true
;
...
...
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