Commit 45d02e71 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

при открытии для стилей выставлялись неправильные BasedOn, Next

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62778 954022d7-b5bf-4e40-9824-e11837661b57
parent eec7c636
...@@ -5055,6 +5055,20 @@ function BinaryFileReader(doc, openParams) ...@@ -5055,6 +5055,20 @@ function BinaryFileReader(doc, openParams)
var elem = this.oReadResult.styles[i]; var elem = this.oReadResult.styles[i];
var oNewStyle = elem.style; var oNewStyle = elem.style;
var sNewStyleId = oNewStyle.Get_Id(); var sNewStyleId = oNewStyle.Get_Id();
if(null != oNewStyle.BasedOn){
var oStyleBasedOn = this.oReadResult.styles[oNewStyle.BasedOn];
if(oStyleBasedOn)
oNewStyle.Set_BasedOn(oStyleBasedOn.style.Get_Id());
else
oNewStyle.Set_BasedOn(null);
}
if(null != oNewStyle.Next){
var oStyleNext = this.oReadResult.styles[oNewStyle.Next];
if(oStyleNext)
oNewStyle.Set_Next(oStyleNext.style.Get_Id());
else
oNewStyle.Set_Next(null);
}
var oNewId = elem.param; var oNewId = elem.param;
var sNewStyleName = oNewStyle.Name.toLowerCase().replace(/\s/g,""); var sNewStyleName = oNewStyle.Name.toLowerCase().replace(/\s/g,"");
if(true == oNewId.def) if(true == oNewId.def)
......
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