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
2fb22f4d
Commit
2fb22f4d
authored
Feb 17, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #34101.
parent
2342fdb5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
15 deletions
+28
-15
word/Editor/Comments.js
word/Editor/Comments.js
+13
-9
word/Editor/Document.js
word/Editor/Document.js
+15
-6
No files found.
word/Editor/Comments.js
View file @
2fb22f4d
...
@@ -774,14 +774,18 @@ ParaComment.prototype =
...
@@ -774,14 +774,18 @@ ParaComment.prototype =
Page
=
HdrFtr
.
RecalcInfo
.
CurPage
;
Page
=
HdrFtr
.
RecalcInfo
.
CurPage
;
}
}
if
(
true
===
this
.
Start
)
if
(
Para
&&
Para
===
AscCommon
.
g_oTableId
.
Get_ById
(
Para
.
Get_Id
()))
{
// Заглушка для повторяющегося заголовка в таблицах
if
(
true
===
this
.
Start
)
{
{
Comment
.
Set_StartId
(
Para
.
Get_Id
()
);
Comment
.
Set_StartId
(
Para
.
Get_Id
()
);
Comment
.
Set_StartInfo
(
Page
,
X
,
Y
,
H
);
Comment
.
Set_StartInfo
(
Page
,
X
,
Y
,
H
);
}
}
else
else
{
{
Comment
.
Set_EndId
(
Para
.
Get_Id
()
);
Comment
.
Set_EndId
(
Para
.
Get_Id
());
}
}
}
},
},
...
...
word/Editor/Document.js
View file @
2fb22f4d
...
@@ -7206,6 +7206,14 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
...
@@ -7206,6 +7206,14 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
var
Comment_X
=
this
.
Get_PageLimits
(
PageIndex
).
XLimit
;
var
Comment_X
=
this
.
Get_PageLimits
(
PageIndex
).
XLimit
;
var
Para
=
g_oTableId
.
Get_ById
(
Comment
.
StartId
);
var
Para
=
g_oTableId
.
Get_ById
(
Comment
.
StartId
);
if
(
!
Para
)
{
// Такое может быть, если комментарий добавлен к заголовку таблицы
this
.
Select_Comment
(
null
,
false
);
editor
.
sync_HideComment
();
}
else
{
var
TextTransform
=
Para
.
Get_ParentTextTransform
();
var
TextTransform
=
Para
.
Get_ParentTextTransform
();
if
(
TextTransform
)
if
(
TextTransform
)
{
{
...
@@ -7216,6 +7224,7 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
...
@@ -7216,6 +7224,7 @@ CDocument.prototype.OnMouseUp = function(e, X, Y, PageIndex)
this
.
Select_Comment
(
Comment
.
Get_Id
(),
false
);
this
.
Select_Comment
(
Comment
.
Get_Id
(),
false
);
editor
.
sync_ShowComment
(
Comment
.
Get_Id
(),
Coords
.
X
,
Coords
.
Y
);
editor
.
sync_ShowComment
(
Comment
.
Get_Id
(),
Coords
.
X
,
Coords
.
Y
);
}
}
}
else
else
{
{
this
.
Select_Comment
(
null
,
false
);
this
.
Select_Comment
(
null
,
false
);
...
...
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