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
757cb4ca
Commit
757cb4ca
authored
Feb 03, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33922
parent
adb3f67e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
word/Editor/ParagraphContentBase.js
word/Editor/ParagraphContentBase.js
+3
-0
word/Math/mathContent.js
word/Math/mathContent.js
+8
-3
No files found.
word/Editor/ParagraphContentBase.js
View file @
757cb4ca
...
@@ -1649,6 +1649,9 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_ElementByPos = function(
...
@@ -1649,6 +1649,9 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_ElementByPos = function(
return
this
;
return
this
;
var
CurPos
=
ContentPos
.
Get
(
Depth
);
var
CurPos
=
ContentPos
.
Get
(
Depth
);
if
(
!
this
.
Content
[
CurPos
])
return
null
;
return
this
.
Content
[
CurPos
].
Get_ElementByPos
(
ContentPos
,
Depth
+
1
);
return
this
.
Content
[
CurPos
].
Get_ElementByPos
(
ContentPos
,
Depth
+
1
);
};
};
CParagraphContentWithParagraphLikeContent
.
prototype
.
Get_PosByDrawing
=
function
(
Id
,
ContentPos
,
Depth
)
CParagraphContentWithParagraphLikeContent
.
prototype
.
Get_PosByDrawing
=
function
(
Id
,
ContentPos
,
Depth
)
...
...
word/Math/mathContent.js
View file @
757cb4ca
...
@@ -3561,6 +3561,8 @@ CMathContent.prototype.Get_ParaContentPos = function(bSelection, bStart, Content
...
@@ -3561,6 +3561,8 @@ CMathContent.prototype.Get_ParaContentPos = function(bSelection, bStart, Content
else
else
{
{
var
nPos
=
(
true
!==
bSelection
?
this
.
CurPos
:
(
false
!==
bStart
?
this
.
Selection
.
StartPos
:
this
.
Selection
.
EndPos
));
var
nPos
=
(
true
!==
bSelection
?
this
.
CurPos
:
(
false
!==
bStart
?
this
.
Selection
.
StartPos
:
this
.
Selection
.
EndPos
));
nPos
=
Math
.
max
(
0
,
Math
.
min
(
nPos
,
this
.
Content
.
length
-
1
));
ContentPos
.
Add
(
nPos
);
ContentPos
.
Add
(
nPos
);
if
(
undefined
!==
this
.
Content
[
nPos
])
if
(
undefined
!==
this
.
Content
[
nPos
])
...
@@ -3576,17 +3578,20 @@ CMathContent.prototype.Set_ParaContentPos = function(ContentPos, Depth)
...
@@ -3576,17 +3578,20 @@ CMathContent.prototype.Set_ParaContentPos = function(ContentPos, Depth)
if
(
undefined
===
CurPos
||
CurPos
<
0
)
if
(
undefined
===
CurPos
||
CurPos
<
0
)
{
{
this
.
CurPos
=
0
;
this
.
CurPos
=
0
;
this
.
Content
[
this
.
CurPos
].
Cursor_MoveToStartPos
();
if
(
this
.
Content
[
this
.
CurPos
])
this
.
Content
[
this
.
CurPos
].
Cursor_MoveToStartPos
();
}
}
else
if
(
CurPos
>
this
.
Content
.
length
-
1
)
else
if
(
CurPos
>
this
.
Content
.
length
-
1
)
{
{
this
.
CurPos
=
this
.
Content
.
length
-
1
;
this
.
CurPos
=
this
.
Content
.
length
-
1
;
this
.
Content
[
this
.
CurPos
].
Cursor_MoveToEndPos
(
false
);
if
(
this
.
Content
[
this
.
CurPos
])
this
.
Content
[
this
.
CurPos
].
Cursor_MoveToEndPos
(
false
);
}
}
else
else
{
{
this
.
CurPos
=
CurPos
;
this
.
CurPos
=
CurPos
;
this
.
Content
[
this
.
CurPos
].
Set_ParaContentPos
(
ContentPos
,
Depth
+
1
);
if
(
this
.
Content
[
this
.
CurPos
])
this
.
Content
[
this
.
CurPos
].
Set_ParaContentPos
(
ContentPos
,
Depth
+
1
);
}
}
};
};
CMathContent
.
prototype
.
Selection_IsEmpty
=
function
()
CMathContent
.
prototype
.
Selection_IsEmpty
=
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