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
b99391c5
Commit
b99391c5
authored
Mar 09, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 34259
parent
ea76739c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
common/CollaborativeEditingBase.js
common/CollaborativeEditingBase.js
+9
-0
common/Drawings/DrawingsChanges.js
common/Drawings/DrawingsChanges.js
+16
-4
No files found.
common/CollaborativeEditingBase.js
View file @
b99391c5
...
@@ -948,6 +948,7 @@ CCollaborativeEditingBase.prototype.private_RestoreDocumentState = function(DocS
...
@@ -948,6 +948,7 @@ CCollaborativeEditingBase.prototype.private_RestoreDocumentState = function(DocS
var
mapRuns
=
{};
var
mapRuns
=
{};
var
mapTables
=
{};
var
mapTables
=
{};
var
mapGrObjects
=
{};
var
mapGrObjects
=
{};
var
mapSlides
=
{};
for
(
var
nIndex
=
0
,
nCount
=
arrReverseChanges
.
length
;
nIndex
<
nCount
;
++
nIndex
)
for
(
var
nIndex
=
0
,
nCount
=
arrReverseChanges
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
{
var
oChange
=
arrReverseChanges
[
nIndex
];
var
oChange
=
arrReverseChanges
[
nIndex
];
...
@@ -970,12 +971,20 @@ CCollaborativeEditingBase.prototype.private_RestoreDocumentState = function(DocS
...
@@ -970,12 +971,20 @@ CCollaborativeEditingBase.prototype.private_RestoreDocumentState = function(DocS
mapTables
[
oClass
.
Get_Id
()]
=
oClass
;
mapTables
[
oClass
.
Get_Id
()]
=
oClass
;
else
if
(
oClass
instanceof
AscFormat
.
CShape
||
oClass
instanceof
AscFormat
.
CImageShape
||
oClass
instanceof
AscFormat
.
CChartSpace
||
oClass
instanceof
AscFormat
.
CGroupShape
||
oClass
instanceof
AscFormat
.
CGraphicFrame
)
else
if
(
oClass
instanceof
AscFormat
.
CShape
||
oClass
instanceof
AscFormat
.
CImageShape
||
oClass
instanceof
AscFormat
.
CChartSpace
||
oClass
instanceof
AscFormat
.
CGroupShape
||
oClass
instanceof
AscFormat
.
CGraphicFrame
)
mapGrObjects
[
oClass
.
Get_Id
()]
=
oClass
;
mapGrObjects
[
oClass
.
Get_Id
()]
=
oClass
;
else
if
(
typeof
AscCommonSlide
!==
"
undefined
"
&&
AscCommonSlide
.
Slide
&&
oClass
instanceof
AscCommonSlide
.
Slide
){
mapSlides
[
oClass
.
Get_Id
()]
=
oClass
;
}
}
}
// Создаем точку в истории. Делаем действия через обычные функции (с отключенным пересчетом), которые пишут в
// Создаем точку в истории. Делаем действия через обычные функции (с отключенным пересчетом), которые пишут в
// историю. Сохраняем список изменений в новой точке, удаляем данную точку.
// историю. Сохраняем список изменений в новой точке, удаляем данную точку.
var
oHistory
=
AscCommon
.
History
;
var
oHistory
=
AscCommon
.
History
;
oHistory
.
CreateNewPointForCollectChanges
();
oHistory
.
CreateNewPointForCollectChanges
();
for
(
var
sId
in
mapSlides
){
if
(
mapSlides
.
hasOwnProperty
(
sId
)){
mapSlides
[
sId
].
correctContent
();
}
}
for
(
var
sId
in
mapGrObjects
){
for
(
var
sId
in
mapGrObjects
){
var
oShape
=
mapGrObjects
[
sId
];
var
oShape
=
mapGrObjects
[
sId
];
if
(
!
oShape
.
checkCorrect
()){
if
(
!
oShape
.
checkCorrect
()){
...
...
common/Drawings/DrawingsChanges.js
View file @
b99391c5
...
@@ -415,13 +415,25 @@
...
@@ -415,13 +415,25 @@
}
}
else
{
else
{
for
(
var
nIndex
=
0
,
nCount
=
this
.
Items
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
for
(
var
nIndex
=
0
,
nCount
=
this
.
Items
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
Pos
=
this
.
Class
.
m_oContentChanges
.
Check
(
AscCommon
.
contentchanges_Remove
,
true
!==
this
.
UseArray
?
this
.
Pos
:
this
.
PosArray
[
nIndex
]);
for
(
var
j
=
0
;
j
<
aContent
.
length
;
++
j
){
if
(
aContent
[
j
]
===
this
.
Items
[
nIndex
]){
aContent
.
splice
(
j
,
1
);
break
;
}
}
}
}
};
if
(
false
===
Pos
)
CChangesDrawingsContentPresentation
.
prototype
.
CheckCorrect
=
function
(){
continue
;
if
(
!
this
.
IsAdd
()){
aContent
.
splice
(
Pos
,
1
);
for
(
var
nIndex
=
0
;
nIndex
<
this
.
Items
.
length
;
++
nIndex
){
if
(
this
.
Items
[
nIndex
].
CheckCorrect
&&
!
this
.
Items
[
nIndex
].
CheckCorrect
()){
return
false
;
}
}
}
}
}
return
true
;
};
};
window
[
'
AscDFH
'
].
CChangesDrawingsContentPresentation
=
CChangesDrawingsContentPresentation
;
window
[
'
AscDFH
'
].
CChangesDrawingsContentPresentation
=
CChangesDrawingsContentPresentation
;
...
...
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