Commit 95f68e4a authored by Ilya.Kirillov's avatar Ilya.Kirillov

Сделан запрет на привязывание плавающих объектов к формулам (баг 26978)....

Сделан запрет на привязывание плавающих объектов к формулам (баг 26978). Сделана корректировка контента параграфа при открытии документа.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58923 954022d7-b5bf-4e40-9824-e11837661b57
parent 2b081824
...@@ -8070,7 +8070,8 @@ Paragraph.prototype = ...@@ -8070,7 +8070,8 @@ Paragraph.prototype =
private_CorrectNearestPos : function(ContentPos, Anchor, Drawing) private_CorrectNearestPos : function(ContentPos, Anchor, Drawing)
{ {
if (true !== Anchor && undefined !== Drawing && null !== Drawing) // Не разрешаем вставлять и привязывать любые объекты к формуле
if (undefined !== Drawing && null !== Drawing)
{ {
var CurPos = ContentPos.Get(0); var CurPos = ContentPos.Get(0);
if (para_Math === this.Content[CurPos].Type) if (para_Math === this.Content[CurPos].Type)
......
...@@ -7259,6 +7259,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow ...@@ -7259,6 +7259,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res = this.bcr.Read1(length, function(t, l){ res = this.bcr.Read1(length, function(t, l){
return oThis.ReadParagraph(t,l, oNewParagraph, Content); return oThis.ReadParagraph(t,l, oNewParagraph, Content);
}); });
oNewParagraph.Correct_Content();
//Prev/Next //Prev/Next
if(null != this.lastPar) if(null != this.lastPar)
{ {
......
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