Commit 812f09fa authored by Sergey Konovalov's avatar Sergey Konovalov

change default TOC styles to styles from document

parent 9ed3af2d
......@@ -6361,6 +6361,14 @@ function BinaryFileReader(doc, openParams)
if(null != oNewId)
stDefault.Headings[i] = oNewId.id;
}
//TOC
for(var i = 0, length = stDefault.TOC.length; i < length; ++i)
{
var sTOC = stDefault.TOC[i];
var oNewId = oIdRenameMap[sTOC];
if(null != oNewId)
stDefault.TOC[i] = oNewId.id;
}
//меняем старые id
for(var sOldId in oIdRenameMap)
{
......
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