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
5d1a48d4
Commit
5d1a48d4
authored
Feb 13, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33344. Fixed a problem with the selection of the cell, which is divided into pages.
parent
2a2eecc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
7 deletions
+45
-7
word/Editor/DocumentContent.js
word/Editor/DocumentContent.js
+45
-7
No files found.
word/Editor/DocumentContent.js
View file @
5d1a48d4
...
...
@@ -4017,8 +4017,24 @@ CDocumentContent.prototype.Cursor_MoveStartOfLine = function(AddToSe
};
CDocumentContent
.
prototype
.
Cursor_MoveAt
=
function
(
X
,
Y
,
AddToSelect
,
bRemoveOldSelection
,
CurPage
)
{
if
(
undefined
!=
CurPage
)
if
(
this
.
Pages
.
length
<=
0
)
return
;
if
(
undefined
!==
CurPage
)
{
if
(
CurPage
<
0
)
{
CurPage
=
0
;
Y
=
0
;
}
else
if
(
CurPage
>=
this
.
Pages
.
length
)
{
CurPage
=
this
.
Pages
.
length
-
1
;
Y
=
this
.
Pages
[
CurPage
].
YLimit
;
}
this
.
CurPage
=
CurPage
;
}
if
(
false
!=
bRemoveOldSelection
)
{
...
...
@@ -7268,8 +7284,19 @@ CDocumentContent.prototype.Selection_Draw_Page = function(PageIndex)
};
CDocumentContent
.
prototype
.
Selection_SetStart
=
function
(
X
,
Y
,
CurPage
,
MouseEvent
)
{
if
(
CurPage
<
0
||
CurPage
>=
this
.
Pages
.
length
)
if
(
this
.
Pages
.
length
<=
0
)
return
;
if
(
CurPage
<
0
)
{
CurPage
=
0
;
Y
=
0
;
}
else
if
(
CurPage
>=
this
.
Pages
.
length
)
{
CurPage
=
this
.
Pages
.
length
-
1
;
Y
=
this
.
Pages
[
CurPage
].
YLimit
;
}
this
.
CurPage
=
CurPage
;
var
AbsPage
=
this
.
Get_AbsolutePage
(
this
.
CurPage
);
...
...
@@ -7395,6 +7422,20 @@ CDocumentContent.prototype.Selection_SetStart = function(X, Y, CurPage, MouseEve
// Если bEnd = true, тогда это конец селекта.
CDocumentContent
.
prototype
.
Selection_SetEnd
=
function
(
X
,
Y
,
CurPage
,
MouseEvent
)
{
if
(
this
.
Pages
.
length
<=
0
)
return
;
if
(
CurPage
<
0
)
{
CurPage
=
0
;
Y
=
0
;
}
else
if
(
CurPage
>=
this
.
Pages
.
length
)
{
CurPage
=
this
.
Pages
.
length
-
1
;
Y
=
this
.
Pages
[
CurPage
].
YLimit
;
}
if
(
docpostype_DrawingObjects
===
this
.
CurPos
.
Type
)
{
var
PageAbs
=
(
this
.
Parent
instanceof
CHeaderFooter
?
CurPage
:
this
.
Get_StartPage_Absolute
(
CurPage
));
...
...
@@ -7411,9 +7452,6 @@ CDocumentContent.prototype.Selection_SetEnd = function(X, Y, CurPage, M
return
;
}
if
(
CurPage
<
0
||
CurPage
>=
this
.
Pages
.
length
)
CurPage
=
0
;
this
.
CurPage
=
CurPage
;
if
(
selectionflag_Numbering
===
this
.
Selection
.
Flag
)
...
...
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