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
2136ce56
Commit
2136ce56
authored
Apr 14, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 32184 - Теряется Page Numbering после сборки версии
parent
c1a08a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+11
-7
No files found.
word/Editor/Serialize2.js
View file @
2136ce56
...
...
@@ -4102,11 +4102,15 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
if
(
null
!=
elem
.
pageNum
)
{
var
Instr
=
"
PAGE
\\
* MERGEFORMAT
"
;
this
.
bs
.
WriteItem
(
c_oSerParType
.
FldSimple
,
function
(){
oThis
.
WriteFldSimple
(
Instr
,
function
(){
if
(
null
!=
elem
.
pageNum
.
String
&&
"
string
"
==
typeof
(
elem
.
pageNum
.
String
)){
oThis
.
WriteRun2
(
function
()
{
oThis
.
WriteText
(
elem
.
pageNum
.
String
,
delText
);
},
oRun
);
}
oThis
.
WriteRun2
(
function
()
{
//всегда что-то пишем, потому что если ничего нет в w:t, то и не применяются настройки
//todo не писать через fldsimple
var
numText
=
'
1
'
;
if
(
null
!=
elem
.
pageNum
.
String
&&
"
string
"
==
typeof
(
elem
.
pageNum
.
String
))
{
numText
=
elem
.
pageNum
.
String
;
}
oThis
.
WriteText
(
numText
,
delText
);
},
oRun
);
});});
}
}
...
...
@@ -12458,7 +12462,7 @@ OpenParStruct.prototype = {
var
oPrevElem
=
this
.
stack
.
pop
();
this
.
cur
=
this
.
stack
[
this
.
stack
.
length
-
1
];
var
elem
=
oPrevElem
.
elem
;
if
(
null
!=
elem
&&
elem
.
Content
&&
elem
.
Content
.
length
>
0
)
{
if
(
null
!=
elem
&&
elem
.
Content
)
{
if
(
para_Field
==
elem
.
Get_Type
()
&&
fieldtype_PAGENUM
==
elem
.
Get_FieldType
())
{
var
oNewRun
=
new
ParaRun
(
this
.
paragraph
);
var
rPr
=
getStyleFirstRun
(
elem
);
...
...
@@ -12467,7 +12471,7 @@ OpenParStruct.prototype = {
}
oNewRun
.
Add_ToContent
(
0
,
new
ParaPageNum
());
this
.
addToContent
(
oNewRun
);
}
else
{
}
else
if
(
elem
.
Content
.
length
>
0
)
{
this
.
addToContent
(
elem
);
}
}
...
...
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