Commit 964e9f3d authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

если в файле есть стиль Hyperlink, то он подменяет default стиль для гиперссылок.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49743 954022d7-b5bf-4e40-9824-e11837661b57
parent 51903175
...@@ -3342,7 +3342,9 @@ function BinaryFileReader(doc, openParams) ...@@ -3342,7 +3342,9 @@ function BinaryFileReader(doc, openParams)
if(stDefault.Header == stId) if(stDefault.Header == stId)
stDefault.Header = oNewId.id; stDefault.Header = oNewId.id;
if(stDefault.Footer == stId) if(stDefault.Footer == stId)
stDefault.Footer = oNewId.id; stDefault.Footer = oNewId.id;
if(stDefault.Hyperlink == stId)
stDefault.Hyperlink = oNewId.id;
delete styles[stId]; delete styles[stId];
break; break;
...@@ -3352,6 +3354,8 @@ function BinaryFileReader(doc, openParams) ...@@ -3352,6 +3354,8 @@ function BinaryFileReader(doc, openParams)
stDefault.Header = oNewId.id; stDefault.Header = oNewId.id;
if("Footer" == oNewStyle.Name) if("Footer" == oNewStyle.Name)
stDefault.Footer = oNewId.id; stDefault.Footer = oNewId.id;
if("Hyperlink" == oNewStyle.Name)
stDefault.Hyperlink = oNewId.id;
if(true == oNewId.def) if(true == oNewId.def)
{ {
switch(oNewStyle.Type) switch(oNewStyle.Type)
......
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