Commit 2fb22f4d authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34101.

parent 2342fdb5
...@@ -774,14 +774,18 @@ ParaComment.prototype = ...@@ -774,14 +774,18 @@ ParaComment.prototype =
Page = HdrFtr.RecalcInfo.CurPage; Page = HdrFtr.RecalcInfo.CurPage;
} }
if ( true === this.Start ) if (Para && Para === AscCommon.g_oTableId.Get_ById(Para.Get_Id()))
{
// Заглушка для повторяющегося заголовка в таблицах
if (true === this.Start)
{ {
Comment.Set_StartId( Para.Get_Id() ); Comment.Set_StartId(Para.Get_Id());
Comment.Set_StartInfo( Page, X, Y, H ); Comment.Set_StartInfo(Page, X, Y, H);
} }
else else
{ {
Comment.Set_EndId( Para.Get_Id() ); Comment.Set_EndId(Para.Get_Id());
}
} }
}, },
......
...@@ -7206,6 +7206,14 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex) ...@@ -7206,6 +7206,14 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
var Comment_X = this.Get_PageLimits(PageIndex).XLimit; var Comment_X = this.Get_PageLimits(PageIndex).XLimit;
var Para = g_oTableId.Get_ById(Comment.StartId); var Para = g_oTableId.Get_ById(Comment.StartId);
if (!Para)
{
// Такое может быть, если комментарий добавлен к заголовку таблицы
this.Select_Comment(null, false);
editor.sync_HideComment();
}
else
{
var TextTransform = Para.Get_ParentTextTransform(); var TextTransform = Para.Get_ParentTextTransform();
if (TextTransform) if (TextTransform)
{ {
...@@ -7216,6 +7224,7 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex) ...@@ -7216,6 +7224,7 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
this.Select_Comment(Comment.Get_Id(), false); this.Select_Comment(Comment.Get_Id(), false);
editor.sync_ShowComment(Comment.Get_Id(), Coords.X, Coords.Y); editor.sync_ShowComment(Comment.Get_Id(), Coords.X, Coords.Y);
} }
}
else else
{ {
this.Select_Comment(null, false); this.Select_Comment(null, false);
......
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