Commit 5b8f22e1 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 27075 - [Autosave] Не сохраняется форматирование номера страницы после сохранения.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59199 954022d7-b5bf-4e40-9824-e11837661b57
parent 18748b25
...@@ -3680,9 +3680,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa ...@@ -3680,9 +3680,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
} }
return sCurText; return sCurText;
}; };
this.WriteRun2 = function (fWriter) { this.WriteRun2 = function (fWriter, oRun) {
var oThis = this; var oThis = this;
this.bs.WriteItem(c_oSerParType.Run, function () { this.bs.WriteItem(c_oSerParType.Run, function () {
//rPr
if (null != oRun && null != oRun.Pr)
oThis.bs.WriteItem(c_oSerRunType.rPr, function () { oThis.brPrs.Write_rPr(oRun.Pr); });
//Content
oThis.bs.WriteItem(c_oSerRunType.Content, function () { oThis.bs.WriteItem(c_oSerRunType.Content, function () {
fWriter(); fWriter();
}); });
...@@ -3738,12 +3742,16 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa ...@@ -3738,12 +3742,16 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
this.WriteRun2(function () { this.WriteRun2(function () {
oThis.memory.WriteByte(c_oSerRunType.fldstart); oThis.memory.WriteByte(c_oSerRunType.fldstart);
oThis.memory.WriteString2(sField); oThis.memory.WriteString2(sField);
}); }, oRun);
this.WriteText((item.CurPage + 1) + ""); if(null != elem.pageNum.String && "string" == typeof(elem.pageNum.String)){
this.WriteRun2(function () {
oThis.WriteText(elem.pageNum.String);
}, oRun);
}
this.WriteRun2(function () { this.WriteRun2(function () {
oThis.memory.WriteByte(c_oSerRunType.fldend); oThis.memory.WriteByte(c_oSerRunType.fldend);
oThis.memory.WriteLong(c_oSerPropLenType.Null); oThis.memory.WriteLong(c_oSerPropLenType.Null);
}); }, oRun);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment