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
f5f0b83f
Commit
f5f0b83f
authored
Mar 03, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #34207.
parent
71c552be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
42 deletions
+47
-42
word/Editor/Paragraph.js
word/Editor/Paragraph.js
+47
-42
No files found.
word/Editor/Paragraph.js
View file @
f5f0b83f
...
...
@@ -9522,49 +9522,54 @@ Paragraph.prototype =
if
(
editor
&&
this
.
bFromDocument
)
{
var
TrackManager
=
this
.
LogicDocument
.
Get_TrackRevisionsManager
();
var
_Y
=
0
,
Page_abs
=
0
,
TextTransform
=
undefined
;
if
(
this
.
Pages
.
length
>
0
&&
this
.
Lines
.
length
>
0
)
{
var
ContentPos
=
this
.
Get_ParaContentPos
(
this
.
Selection
.
Use
,
true
);
var
ParaPos
=
this
.
Get_ParaPosByContentPos
(
ContentPos
);
Page_abs
=
this
.
Get_AbsolutePage
(
ParaPos
.
Page
);
_Y
=
this
.
Pages
[
ParaPos
.
Page
].
Y
+
this
.
Lines
[
ParaPos
.
Line
].
Top
;
TextTransform
=
this
.
Get_ParentTextTransform
();
}
var
_X
=
(
this
.
LogicDocument
?
this
.
LogicDocument
.
Get_PageLimits
(
Page_abs
).
XLimit
:
0
);
var
Coords
=
this
.
DrawingDocument
.
ConvertCoordsToCursorWR
(
_X
,
_Y
,
Page_abs
,
TextTransform
);
var
TrackManager
=
this
.
LogicDocument
.
Get_TrackRevisionsManager
();
if
(
this
===
TrackManager
.
Get_CurrentChangeParagraph
())
{
var
Change
=
TrackManager
.
Get_CurrentChange
();
if
(
null
!==
Change
)
{
Change
.
put_InternalPos
(
_X
,
_Y
,
Page_abs
);
TrackManager
.
Add_VisibleChange
(
Change
);
}
}
else
if
(
false
===
this
.
Selection
.
Use
)
{
var
Changes
=
TrackManager
.
Get_ParagraphChanges
(
this
.
Get_Id
());
if
(
Changes
.
length
>
0
)
{
for
(
var
ChangeIndex
=
0
,
ChangesCount
=
Changes
.
length
;
ChangeIndex
<
ChangesCount
;
ChangeIndex
++
)
{
var
Change
=
Changes
[
ChangeIndex
];
var
Type
=
Change
.
get_Type
();
if
((
c_oAscRevisionsChangeType
.
TextAdd
!==
Type
&&
c_oAscRevisionsChangeType
.
TextRem
!==
Type
&&
c_oAscRevisionsChangeType
.
TextPr
!==
Type
)
||
(
StartPos
.
Compare
(
Change
.
get_StartPos
())
>=
0
&&
StartPos
.
Compare
(
Change
.
get_EndPos
())
<=
0
))
{
Change
.
put_InternalPos
(
_X
,
_Y
,
Page_abs
);
TrackManager
.
Add_VisibleChange
(
Change
);
}
}
}
}
if
(
this
.
Pages
.
length
<=
0
&&
this
.
Lines
.
length
<=
0
)
return
;
var
ContentPos
=
this
.
Get_ParaContentPos
(
this
.
Selection
.
Use
,
true
);
var
ParaPos
=
this
.
Get_ParaPosByContentPos
(
ContentPos
);
if
(
this
.
Pages
.
length
<=
ParaPos
.
Page
||
this
.
Lines
.
length
<=
ParaPos
.
Line
)
return
;
var
Page_abs
=
this
.
Get_AbsolutePage
(
ParaPos
.
Page
);
var
_Y
=
this
.
Pages
[
ParaPos
.
Page
].
Y
+
this
.
Lines
[
ParaPos
.
Line
].
Top
;
var
TextTransform
=
this
.
Get_ParentTextTransform
();
var
_X
=
(
this
.
LogicDocument
?
this
.
LogicDocument
.
Get_PageLimits
(
Page_abs
).
XLimit
:
0
);
var
Coords
=
this
.
DrawingDocument
.
ConvertCoordsToCursorWR
(
_X
,
_Y
,
Page_abs
,
TextTransform
);
if
(
this
===
TrackManager
.
Get_CurrentChangeParagraph
())
{
var
Change
=
TrackManager
.
Get_CurrentChange
();
if
(
null
!==
Change
)
{
Change
.
put_InternalPos
(
_X
,
_Y
,
Page_abs
);
TrackManager
.
Add_VisibleChange
(
Change
);
}
}
else
if
(
false
===
this
.
Selection
.
Use
)
{
var
Changes
=
TrackManager
.
Get_ParagraphChanges
(
this
.
Get_Id
());
if
(
Changes
.
length
>
0
)
{
for
(
var
ChangeIndex
=
0
,
ChangesCount
=
Changes
.
length
;
ChangeIndex
<
ChangesCount
;
ChangeIndex
++
)
{
var
Change
=
Changes
[
ChangeIndex
];
var
Type
=
Change
.
get_Type
();
if
((
c_oAscRevisionsChangeType
.
TextAdd
!==
Type
&&
c_oAscRevisionsChangeType
.
TextRem
!==
Type
&&
c_oAscRevisionsChangeType
.
TextPr
!==
Type
)
||
(
StartPos
.
Compare
(
Change
.
get_StartPos
())
>=
0
&&
StartPos
.
Compare
(
Change
.
get_EndPos
())
<=
0
))
{
Change
.
put_InternalPos
(
_X
,
_Y
,
Page_abs
);
TrackManager
.
Add_VisibleChange
(
Change
);
}
}
}
}
}
},
...
...
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