Commit 74f9bd89 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

g_oIdCounter.Get_NewId(); вместо sOldId + "_" + nCounter;

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62082 954022d7-b5bf-4e40-9824-e11837661b57
parent 81d93174
......@@ -4962,12 +4962,7 @@ function BinaryFileReader(doc, openParams)
{
var sOldId = oCollisionStyle.Get_Id();
var nCounter = 1;
var sNewId = sOldId + "_" + nCounter;
while(null != styles[sNewId] || null != this.oReadResult.styles[sNewId])
{
nCounter++;
sNewId = sOldId + "_" + nCounter;
}
var sNewId = g_oIdCounter.Get_NewId();
var oNewId = {id: sNewId, def: false, type: oCollisionStyle.Type, newName: oCollisionStyle.Name.toLowerCase().replace(/\s/g,"")};
oIdRenameMap[sOldId] = oNewId;
if(stDefault.Character == sOldId || stDefault.Numbering == sOldId || stDefault.Paragraph == sOldId || stDefault.Table == sOldId)
......
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