Commit 0791ce98 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34252

parent 8d76ae97
......@@ -2156,6 +2156,12 @@ CHeaderFooterController.prototype =
History.Create_NewPoint(AscDFH.historydescription_Document_AddHeader);
this.LogicDocument.Set_DocPosType(docpostype_HdrFtr);
HdrFtr = this.LogicDocument.Create_SectionHdrFtr( hdrftr_Header, PageIndex );
if (this.CurHdrFtr)
this.CurHdrFtr.Selection_Remove();
this.CurHdrFtr = HdrFtr;
this.LogicDocument.Recalculate();
}
else
......@@ -2175,6 +2181,12 @@ CHeaderFooterController.prototype =
History.Create_NewPoint(AscDFH.historydescription_Document_AddFooter);
this.LogicDocument.Set_DocPosType(docpostype_HdrFtr);
HdrFtr = this.LogicDocument.Create_SectionHdrFtr( hdrftr_Footer, PageIndex );
if (this.CurHdrFtr)
this.CurHdrFtr.Selection_Remove();
this.CurHdrFtr = HdrFtr;
this.LogicDocument.Recalculate();
}
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