Commit c49f8b39 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32393

parent 30bcd1ba
......@@ -1201,7 +1201,7 @@ asc_docs_api.prototype.select_Element = function(Index)
Document.Selection.Use = true;
Document.Selection.Start = false;
Document.Selection.Flag = selectionflag_Common;
Document.Selection.Flag = AscCommon.selectionflag_Common;
Document.Selection.StartPos = Index;
Document.Selection.EndPos = Index;
......
......@@ -29,13 +29,6 @@ var Y_Top_Margin = 20; // 2 cm
var X_Right_Field = Page_Width - X_Right_Margin;
var Y_Bottom_Field = Page_Height - Y_Bottom_Margin;
var docpostype_Content = 0x00;
var docpostype_HdrFtr = 0x02;
var selectionflag_Common = 0x00;
var selectionflag_Numbering = 0x01;
var selectionflag_DrawingObject = 0x002;
var tableSpacingMinValue = 0.02;//0.02мм
var GlobalSkinTeamlab = {
......
......@@ -17581,6 +17581,7 @@ window['Asc'] = window['Asc'] || {};
window['AscCommon'] = window['AscCommon'] || {};
window['AscCommonWord'] = window['AscCommonWord'] || {};
window['AscCommonWord'].CDocument = CDocument;
window['AscCommonWord'].docpostype_HdrFtr = docpostype_HdrFtr;
window['AscCommon'].Page_Width = Page_Width;
window['AscCommon'].Page_Height = Page_Height;
......@@ -17588,6 +17589,7 @@ window['AscCommon'].X_Left_Margin = X_Left_Margin;
window['AscCommon'].X_Right_Margin = X_Right_Margin;
window['AscCommon'].Y_Bottom_Margin = Y_Bottom_Margin;
window['AscCommon'].Y_Top_Margin = Y_Top_Margin;
window['AscCommon'].selectionflag_Common = selectionflag_Common;
CDocumentColumnProps.prototype['put_W'] = CDocumentColumnProps.prototype.put_W;
CDocumentColumnProps.prototype['get_W'] = CDocumentColumnProps.prototype.get_W;
......
......@@ -1448,7 +1448,7 @@ asc_docs_api.prototype.select_Element = function(Index)
Document.Selection.Use = true;
Document.Selection.Start = false;
Document.Selection.Flag = selectionflag_Common;
Document.Selection.Flag = AscCommon.selectionflag_Common;
Document.Selection.StartPos = Index;
Document.Selection.EndPos = Index;
......@@ -6062,9 +6062,9 @@ asc_docs_api.prototype.GoToHeader = function(pageNumber)
var bForceRedraw = false;
var LogicDocument = this.WordControl.m_oLogicDocument;
if (docpostype_HdrFtr !== LogicDocument.CurPos.Type)
if (AscCommonWord.docpostype_HdrFtr !== LogicDocument.CurPos.Type)
{
LogicDocument.CurPos.Type = docpostype_HdrFtr;
LogicDocument.CurPos.Type = AscCommonWord.docpostype_HdrFtr;
bForceRedraw = true;
}
......@@ -6094,9 +6094,9 @@ asc_docs_api.prototype.GoToFooter = function(pageNumber)
var bForceRedraw = false;
var LogicDocument = this.WordControl.m_oLogicDocument;
if (docpostype_HdrFtr !== LogicDocument.CurPos.Type)
if (AscCommonWord.docpostype_HdrFtr !== LogicDocument.CurPos.Type)
{
LogicDocument.CurPos.Type = docpostype_HdrFtr;
LogicDocument.CurPos.Type = AscCommonWord.docpostype_HdrFtr;
bForceRedraw = 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