Commit ead92865 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33547. Fixed an issue with a destonation of paste function when...

Fixed bug #33547. Fixed an issue with a destonation of paste function when cursor placed in a footnote.
parent dedf4d1c
......@@ -1898,31 +1898,35 @@ PasteProcessor.prototype =
if(PasteElementsId.g_bIsDocumentCopyPaste)
{
var nDocPosType = oDocument.Get_DocPosType();
if(docpostype_HdrFtr === nDocPosType)
{
if(null != oDocument.HdrFtr && null != oDocument.HdrFtr.CurHdrFtr && null != oDocument.HdrFtr.CurHdrFtr.Content)
{
oDocument = oDocument.HdrFtr.CurHdrFtr.Content;
this.oRecalcDocument = oDocument;
}
}
if(nDocPosType === docpostype_DrawingObjects)
{
var content = oDocument.DrawingObjects.getTargetDocContent(true);
if(content)
{
oDocument = content;
}
}
if (docpostype_HdrFtr === nDocPosType)
{
if (null != oDocument.HdrFtr && null != oDocument.HdrFtr.CurHdrFtr && null != oDocument.HdrFtr.CurHdrFtr.Content)
{
oDocument = oDocument.HdrFtr.CurHdrFtr.Content;
this.oRecalcDocument = oDocument;
}
}
else if (nDocPosType === docpostype_DrawingObjects)
{
var content = oDocument.DrawingObjects.getTargetDocContent(true);
if (content)
{
oDocument = content;
}
}
else if (nDocPosType === docpostype_Footnotes)
{
if (oDocument.Footnotes && oDocument.Footnotes.CurFootnote)
oDocument = oDocument.Footnotes.CurFootnote
}
//��� ��������� ������
var Item = oDocument.Content[oDocument.CurPos.ContentPos];
if( type_Table == Item.GetType() && null != Item.CurCell)
{
this.dMaxWidth = this._CalcMaxWidthByCell(Item.CurCell);
oDocument = this._GetTargetDocument(Item.CurCell.Content);
}
// Отдельно обрабатываем случай, когда курсор находится внутри таблицы
var Item = oDocument.Content[oDocument.CurPos.ContentPos];
if (type_Table == Item.GetType() && null != Item.CurCell)
{
this.dMaxWidth = this._CalcMaxWidthByCell(Item.CurCell);
oDocument = this._GetTargetDocument(Item.CurCell.Content);
}
}
else
{
......
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