Commit dc75c7c8 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed problem with updating style from selection.

parent 56d5bbc6
......@@ -207,6 +207,16 @@ CStyles.prototype.Create_StyleFromInterface = function(oAscStyle, bCheckLink)
this.Remove(OldId);
this.RemapIdReferences(OldId, oStyle.GetId());
var oLogicDocument = editor.WordControl.m_oLogicDocument;
if (oLogicDocument)
{
var arrParagraphs = oLogicDocument.Get_AllParagraphsByStyle([OldId]);
for (var nIndex = 0, nCount = arrParagraphs.length; nIndex < nCount; ++nIndex)
{
arrParagraphs[nIndex].Style_Add(oStyle.GetId(), true);
}
}
}
oStyle.Set_Name(sStyleName);
......
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