Commit 80f2f5bb authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с обновлением интерфейса после удаления/добавления комментариев...

Исправлен баг с обновлением интерфейса после удаления/добавления комментариев (баг 27041). Исправлен баг с добавлением параграфов по двойному клику в таблице (баг 27081). Исправлен баг с обновлением текстовых настроек (баг 26967).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58993 954022d7-b5bf-4e40-9824-e11837661b57
parent 77ac2e49
...@@ -13138,6 +13138,7 @@ CDocument.prototype = ...@@ -13138,6 +13138,7 @@ CDocument.prototype =
// TODO: Продумать, как избавиться от пересчета // TODO: Продумать, как избавиться от пересчета
this.Recalculate(); this.Recalculate();
this.Document_UpdateInterfaceState();
} }
return Comment; return Comment;
...@@ -13164,6 +13165,8 @@ CDocument.prototype = ...@@ -13164,6 +13165,8 @@ CDocument.prototype =
if ( true === bSendEvent ) if ( true === bSendEvent )
editor.sync_RemoveComment( Id ); editor.sync_RemoveComment( Id );
this.Document_UpdateInterfaceState();
} }
}, },
......
...@@ -2089,10 +2089,14 @@ CDocumentContent.prototype = ...@@ -2089,10 +2089,14 @@ CDocumentContent.prototype =
else else
NewParagraph.Style_Add_Open( NextId ); NewParagraph.Style_Add_Open( NextId );
if ( undefined != LastPara.TextPr.Value.FontSize ) if ( undefined != LastPara.TextPr.Value.FontSize || undefined !== LastPara.TextPr.Value.RFonts.Ascii )
{ {
NewParagraph.TextPr.Set_FontSize(LastPara.TextPr.Value.FontSize); var TextPr = new CTextPr();
NewParagraph.Internal_Content_Add( 0, new ParaTextPr( { FontSize : LastPara.TextPr.Value.FontSize, FontSizeCS : LastPara.TextPr.Value.FontSize } ) ); TextPr.FontSize = LastPara.TextPr.Value.FontSize;
TextPr.FontSizeCS = LastPara.TextPr.Value.FontSize;
TextPr.RFonts = LastPara.TextPr.Value.RFonts.Copy();
NewParagraph.Select_All();
NewParagraph.Apply_TextPr( TextPr );
} }
LastPara.Set_DocumentNext( NewParagraph ); LastPara.Set_DocumentNext( NewParagraph );
......
...@@ -6402,7 +6402,7 @@ Paragraph.prototype = ...@@ -6402,7 +6402,7 @@ Paragraph.prototype =
else else
{ {
var bCheckParaEnd = false; var bCheckParaEnd = false;
if ( this.Content.length - 1 === EndPos ) if ( this.Content.length - 1 === EndPos && true !== this.Content[EndPos].Selection_IsEmpty(true))
{ {
EndPos--; EndPos--;
bCheckParaEnd = true; bCheckParaEnd = true;
......
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