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
f3cd6792
Commit
f3cd6792
authored
Jan 23, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reworked getting a text properties for Math element. Fixed bug # 33532.
parent
1ea0dd9c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
word/Math/base.js
word/Math/base.js
+18
-8
word/Math/mathContent.js
word/Math/mathContent.js
+2
-0
No files found.
word/Math/base.js
View file @
f3cd6792
...
...
@@ -936,14 +936,24 @@ CMathBase.prototype.Get_TextPr = function(ContentPos, Depth)
};
CMathBase
.
prototype
.
Get_CompiledTextPr
=
function
(
Copy
)
{
var
TextPr
=
this
.
Content
[
0
].
Get_CompiledTextPr
(
true
,
true
)
;
var
TextPr
=
null
;
for
(
var
i
=
1
;
i
<
this
.
Content
.
length
;
i
++
)
var
nStartPos
=
0
;
var
nCount
=
this
.
Content
.
length
;
while
(
null
===
TextPr
&&
nStartPos
<
nCount
)
{
if
(
this
.
Is_ContentUse
(
this
.
Content
[
nStartPos
]))
TextPr
=
this
.
Content
[
nStartPos
].
Get_CompiledTextPr
(
true
,
true
);
nStartPos
++
;
}
for
(
var
nPos
=
nStartPos
;
nPos
<
nCount
;
++
nPos
)
{
var
CurTextPr
=
this
.
Content
[
i
].
Get_CompiledTextPr
(
false
,
true
);
var
CurTextPr
=
this
.
Content
[
nPos
].
Get_CompiledTextPr
(
false
,
true
);
if
(
null
!==
CurTextPr
)
TextPr
=
TextPr
.
Compare
(
CurTextPr
);
if
(
null
!==
CurTextPr
)
TextPr
=
TextPr
.
Compare
(
CurTextPr
);
}
return
TextPr
;
...
...
word/Math/mathContent.js
View file @
f3cd6792
...
...
@@ -2465,6 +2465,8 @@ CMathContent.prototype.Load_FromMenu = function(Type, Paragraph)
this
.
Paragraph
=
Paragraph
;
var
Pr
=
{
ctrPrp
:
new
CTextPr
()};
Pr
.
ctrPrp
.
Italic
=
true
;
Pr
.
ctrPrp
.
RFonts
.
Set_All
(
"
Cambria Math
"
,
-
1
);
var
MainType
=
Type
>>
24
;
...
...
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