Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
2d2be2bb
Commit
2d2be2bb
authored
Mar 17, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #34311
parent
4c1cf23b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
word/Editor/Document.js
word/Editor/Document.js
+24
-1
No files found.
word/Editor/Document.js
View file @
2d2be2bb
...
@@ -919,6 +919,8 @@ function CDocumentRecalcInfo()
...
@@ -919,6 +919,8 @@ function CDocumentRecalcInfo()
this
.
FootnoteColumn
=
0
;
this
.
FootnoteColumn
=
0
;
this
.
AdditionalInfo
=
null
;
this
.
AdditionalInfo
=
null
;
this
.
NeedRecalculateFromStart
=
false
;
}
}
CDocumentRecalcInfo
.
prototype
=
CDocumentRecalcInfo
.
prototype
=
...
@@ -1074,7 +1076,18 @@ CDocumentRecalcInfo.prototype =
...
@@ -1074,7 +1076,18 @@ CDocumentRecalcInfo.prototype =
this
.
FootnotePage
=
0
;
this
.
FootnotePage
=
0
;
this
.
FootnoteColumn
=
0
;
this
.
FootnoteColumn
=
0
;
this
.
FlowObjectPageBreakBefore
=
false
;
this
.
FlowObjectPageBreakBefore
=
false
;
}
},
Set_NeedRecalculateFromStart
:
function
(
isNeedRecalculate
)
{
this
.
NeedRecalculateFromStart
=
isNeedRecalculate
;
},
Is_NeedRecalculateFromStart
:
function
()
{
return
this
.
NeedRecalculateFromStart
;
}
};
};
function
CDocumentFieldsManager
()
function
CDocumentFieldsManager
()
...
@@ -1817,6 +1830,13 @@ CDocument.prototype.Is_OnRecalculate = function()
...
@@ -1817,6 +1830,13 @@ CDocument.prototype.Is_OnRecalculate = function()
*/
*/
CDocument
.
prototype
.
Recalculate
=
function
(
bOneParagraph
,
bRecalcContentLast
,
_RecalcData
)
CDocument
.
prototype
.
Recalculate
=
function
(
bOneParagraph
,
bRecalcContentLast
,
_RecalcData
)
{
{
if
(
this
.
RecalcInfo
.
Is_NeedRecalculateFromStart
())
{
this
.
RecalcInfo
.
Set_NeedRecalculateFromStart
(
false
);
this
.
Recalculate_FromStart
();
return
;
}
this
.
StartTime
=
new
Date
().
getTime
();
this
.
StartTime
=
new
Date
().
getTime
();
if
(
true
!==
this
.
Is_OnRecalculate
())
if
(
true
!==
this
.
Is_OnRecalculate
())
...
@@ -9039,6 +9059,9 @@ CDocument.prototype.Update_SectionsInfo = function()
...
@@ -9039,6 +9059,9 @@ CDocument.prototype.Update_SectionsInfo = function()
}
}
this
.
SectionsInfo
.
Add
(
this
.
SectPr
,
Count
);
this
.
SectionsInfo
.
Add
(
this
.
SectPr
,
Count
);
// Когда полностью обновляются секции надо пересчитывать с самого начала
this
.
RecalcInfo
.
Set_NeedRecalculateFromStart
(
true
);
};
};
CDocument
.
prototype
.
Check_SectionLastParagraph
=
function
()
CDocument
.
prototype
.
Check_SectionLastParagraph
=
function
()
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment