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
dc75c7c8
Commit
dc75c7c8
authored
7 years ago
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with updating style from selection.
parent
56d5bbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
word/Private/StyleManager.js
word/Private/StyleManager.js
+11
-1
No files found.
word/Private/StyleManager.js
View file @
dc75c7c8
...
...
@@ -206,7 +206,17 @@ CStyles.prototype.Create_StyleFromInterface = function(oAscStyle, bCheckLink)
oStyle
.
Set_Next
(
oOldStyle
.
Get_Next
());
this
.
Remove
(
OldId
);
this
.
RemapIdReferences
(
OldId
,
oStyle
.
GetId
());
this
.
RemapIdReferences
(
OldId
,
oStyle
.
GetId
());
var
oLogicDocument
=
editor
.
WordControl
.
m_oLogicDocument
;
if
(
oLogicDocument
)
{
var
arrParagraphs
=
oLogicDocument
.
Get_AllParagraphsByStyle
([
OldId
]);
for
(
var
nIndex
=
0
,
nCount
=
arrParagraphs
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
arrParagraphs
[
nIndex
].
Style_Add
(
oStyle
.
GetId
(),
true
);
}
}
}
oStyle
.
Set_Name
(
sStyleName
);
...
...
This diff is collapsed.
Click to expand it.
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