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
3d0488b7
Commit
3d0488b7
authored
Feb 03, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33877
parent
757cb4ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
word/Editor/GraphicObjects/DrawingStates.js
word/Editor/GraphicObjects/DrawingStates.js
+10
-9
word/Editor/Paragraph/ParaDrawing.js
word/Editor/Paragraph/ParaDrawing.js
+5
-2
word/Editor/Run.js
word/Editor/Run.js
+4
-0
No files found.
word/Editor/GraphicObjects/DrawingStates.js
View file @
3d0488b7
...
@@ -728,11 +728,13 @@ RotateState.prototype =
...
@@ -728,11 +728,13 @@ RotateState.prototype =
// На удалении включаем пересчет из-за бага (28015), чтобы во время добавления автофигуры на эту же страницу
// На удалении включаем пересчет из-за бага (28015), чтобы во время добавления автофигуры на эту же страницу
// расположение всех элементов было рассчитано с уже удаленной автофигурой.
// расположение всех элементов было рассчитано с уже удаленной автофигурой.
var
bTrackRevisions
=
false
;
// Автофигуры мы переносим так, как будто это происходит не в режиме рецензирования, но
if
(
this
.
drawingObjects
.
document
.
TrackRevisions
){
// при этом мы должны сохранить их начальные настройки рецензирования.
bTrackRevisions
=
true
;
var
bTrackRevisions
=
this
.
drawingObjects
.
document
.
Is_TrackRevisions
();
this
.
drawingObjects
.
document
.
TrackRevisions
=
false
;
if
(
bTrackRevisions
)
}
this
.
drawingObjects
.
document
.
Set_TrackRevisions
(
false
);
var
oOriginalRun
=
original
.
Parent
.
Get_DrawingObjectRun
(
original
.
Id
);
original
.
Remove_FromDocument
(
false
);
original
.
Remove_FromDocument
(
false
);
aNearestPos
[
i
].
Paragraph
.
Check_NearestPos
(
aNearestPos
[
i
]);
aNearestPos
[
i
].
Paragraph
.
Check_NearestPos
(
aNearestPos
[
i
]);
...
@@ -740,12 +742,11 @@ RotateState.prototype =
...
@@ -740,12 +742,11 @@ RotateState.prototype =
// Всегда создаем копию при переносе, чтобы не было проблем при совместном редактировании
// Всегда создаем копию при переносе, чтобы не было проблем при совместном редактировании
var
originalCopy
=
original
.
Copy
();
var
originalCopy
=
original
.
Copy
();
originalCopy
.
Set_XYForAdd
(
bounds
.
posX
,
bounds
.
posY
,
aNearestPos
[
i
],
pageIndex
);
originalCopy
.
Set_XYForAdd
(
bounds
.
posX
,
bounds
.
posY
,
aNearestPos
[
i
],
pageIndex
);
originalCopy
.
Add_ToDocument
(
aNearestPos
[
i
],
false
);
originalCopy
.
Add_ToDocument
(
aNearestPos
[
i
],
false
,
null
,
oOriginalRun
);
original
.
DocumentContent
.
Select_DrawingObject
(
originalCopy
.
Get_Id
());
original
.
DocumentContent
.
Select_DrawingObject
(
originalCopy
.
Get_Id
());
if
(
bTrackRevisions
){
if
(
bTrackRevisions
)
this
.
drawingObjects
.
document
.
TrackRevisions
=
true
;
this
.
drawingObjects
.
document
.
Set_TrackRevisions
(
true
);
}
}
}
else
else
{
{
...
...
word/Editor/Paragraph/ParaDrawing.js
View file @
3d0488b7
...
@@ -1365,7 +1365,7 @@ ParaDrawing.prototype.Get_ParentParagraph = function()
...
@@ -1365,7 +1365,7 @@ ParaDrawing.prototype.Get_ParentParagraph = function()
return
this
.
Parent
.
Paragraph
;
return
this
.
Parent
.
Paragraph
;
return
null
;
return
null
;
};
};
ParaDrawing
.
prototype
.
Add_ToDocument
=
function
(
NearPos
,
bRecalculate
,
RunPr
)
ParaDrawing
.
prototype
.
Add_ToDocument
=
function
(
NearPos
,
bRecalculate
,
RunPr
,
Run
)
{
{
NearPos
.
Paragraph
.
Check_NearestPos
(
NearPos
);
NearPos
.
Paragraph
.
Check_NearestPos
(
NearPos
);
...
@@ -1375,9 +1375,12 @@ ParaDrawing.prototype.Add_ToDocument = function(NearPos, bRecalculate, RunPr)
...
@@ -1375,9 +1375,12 @@ ParaDrawing.prototype.Add_ToDocument = function(NearPos, bRecalculate, RunPr)
var
DrawingRun
=
new
ParaRun
(
Para
);
var
DrawingRun
=
new
ParaRun
(
Para
);
DrawingRun
.
Add_ToContent
(
0
,
this
);
DrawingRun
.
Add_ToContent
(
0
,
this
);
if
(
undefined
!==
RunPr
)
if
(
RunPr
)
DrawingRun
.
Set_Pr
(
RunPr
.
Copy
());
DrawingRun
.
Set_Pr
(
RunPr
.
Copy
());
if
(
Run
)
DrawingRun
.
Set_ReviewTypeWithInfo
(
Run
.
Get_ReviewType
(),
Run
.
Get_ReviewInfo
());
Para
.
Add_ToContent
(
0
,
DrawingRun
);
Para
.
Add_ToContent
(
0
,
DrawingRun
);
var
SelectedElement
=
new
CSelectedElement
(
Para
,
false
);
var
SelectedElement
=
new
CSelectedElement
(
Para
,
false
);
...
...
word/Editor/Run.js
View file @
3d0488b7
...
@@ -8535,6 +8535,10 @@ ParaRun.prototype.Get_ReviewType = function()
...
@@ -8535,6 +8535,10 @@ ParaRun.prototype.Get_ReviewType = function()
{
{
return
this
.
ReviewType
;
return
this
.
ReviewType
;
};
};
ParaRun
.
prototype
.
Get_ReviewInfo
=
function
()
{
return
this
.
ReviewInfo
;
};
ParaRun
.
prototype
.
Get_ReviewColor
=
function
()
ParaRun
.
prototype
.
Get_ReviewColor
=
function
()
{
{
if
(
this
.
ReviewInfo
)
if
(
this
.
ReviewInfo
)
...
...
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