Commit 856d6a29 authored by GoshaZotov's avatar GoshaZotov

do not change position special paste icon if add into header

parent 3d2c203e
......@@ -2279,8 +2279,9 @@ PasteProcessor.prototype =
//SpecialPasteButtonById_Show вызываю здесь, если пересчет документа завершился раньше, чем мы попали сюда и сгенерировали параметры вставки
//в противном случае вызываю SpecialPasteButtonById_Show в drawingDocument->OnEndRecalculate
//TODO пересмотреть проверку на CDrawingDocContent и CShape
if(window['AscCommon'].g_clipboardBase.endRecalcDocument || (this.oDocument.Parent && this.oDocument.Parent instanceof CShape) || (this.oDocument instanceof AscFormat.CDrawingDocContent))
{
if (window['AscCommon'].g_clipboardBase.endRecalcDocument || (this.oDocument.Parent &&
(this.oDocument.Parent instanceof CShape || this.oDocument.Parent instanceof CHeaderFooter)) ||
(this.oDocument instanceof AscFormat.CDrawingDocContent)) {
window['AscCommon'].g_clipboardBase.SpecialPasteButtonById_Show();
}
}
......
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