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
70cbb2da
Commit
70cbb2da
authored
Aug 09, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with undo/redo.
parent
bcbf40c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
word/Editor/ParagraphChanges.js
word/Editor/ParagraphChanges.js
+18
-0
No files found.
word/Editor/ParagraphChanges.js
View file @
70cbb2da
...
...
@@ -325,6 +325,15 @@ CChangesParagraphAddItem.prototype.Redo = function()
oParagraph
.
Content
=
Array_start
.
concat
(
this
.
Items
,
Array_end
);
oParagraph
.
private_UpdateTrackRevisions
();
private_ParagraphChangesOnSetValue
(
this
.
Class
);
for
(
var
nIndex
=
0
,
nCount
=
this
.
Items
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
oItem
=
this
.
Items
[
nIndex
];
oItem
.
Parent
=
this
.
Class
;
if
(
oItem
.
SetParagraph
)
oItem
.
SetParagraph
(
this
.
Class
);
}
};
CChangesParagraphAddItem
.
prototype
.
private_WriteItem
=
function
(
Writer
,
Item
)
{
...
...
@@ -405,6 +414,15 @@ CChangesParagraphRemoveItem.prototype.Undo = function()
oParagraph
.
Content
=
Array_start
.
concat
(
this
.
Items
,
Array_end
);
oParagraph
.
private_UpdateTrackRevisions
();
private_ParagraphChangesOnSetValue
(
this
.
Class
);
for
(
var
nIndex
=
0
,
nCount
=
this
.
Items
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
oItem
=
this
.
Items
[
nIndex
];
oItem
.
Parent
=
this
.
Class
;
if
(
oItem
.
SetParagraph
)
oItem
.
SetParagraph
(
this
.
Class
);
}
};
CChangesParagraphRemoveItem
.
prototype
.
Redo
=
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