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
cb14f775
Commit
cb14f775
authored
Jul 27, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 35464
parent
fe0dc4ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
20 deletions
+54
-20
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+54
-20
No files found.
slide/Editor/Format/Presentation.js
View file @
cb14f775
...
...
@@ -4659,6 +4659,37 @@ CPresentation.prototype =
{
if
(
Content
.
Drawings
.
length
>
0
)
{
if
(
this
.
FocusOnNotes
&&
Content
.
Drawings
.
length
===
1
&&
Content
.
Drawings
[
0
].
Drawing
instanceof
AscFormat
.
CGraphicFrame
&&
Content
.
Drawings
[
0
].
Drawing
.
graphicObject
){
var
oContent
=
AscFormat
.
ExecuteNoHistory
(
function
(){
var
oTable
=
Content
.
Drawings
[
0
].
Drawing
.
graphicObject
;
var
oResult
=
new
AscFormat
.
CDrawingDocContent
(
this
,
this
.
DrawingDocument
,
0
,
0
,
3000
,
2000
);
for
(
var
i
=
0
;
i
<
oTable
.
Content
.
length
;
++
i
){
var
oRow
=
oTable
.
Content
[
i
];
for
(
var
j
=
0
;
j
<
oRow
.
Content
.
length
;
++
j
){
var
oCurDocContent
=
oRow
.
Content
[
j
].
Content
;
for
(
var
k
=
0
;
k
<
oCurDocContent
.
Content
.
length
;
++
k
){
oResult
.
Content
.
push
(
oCurDocContent
.
Content
[
k
]);
}
}
}
if
(
oResult
.
Content
.
length
>
1
){
oResult
.
Content
.
splice
(
0
,
1
);
}
return
oResult
;
},
this
,
[]
);
var
oSelectedContent
=
new
CSelectedContent
();
oContent
.
SelectAll
();
oContent
.
GetSelectedContent
(
oSelectedContent
);
var
PresentSelContent
=
new
PresentationSelectedContent
();
PresentSelContent
.
DocContent
=
oSelectedContent
;
this
.
Insert_Content
(
PresentSelContent
);
return
;
}
else
{
this
.
FocusOnNotes
=
false
;
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
resetSelection
();
for
(
i
=
0
;
i
<
Content
.
Drawings
.
length
;
++
i
)
{
...
...
@@ -4688,6 +4719,7 @@ CPresentation.prototype =
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectObject
(
shape
,
0
);
}
}
}
else
if
(
Content
.
DocContent
)
{
if
(
Content
.
DocContent
.
Elements
.
length
>
0
){
...
...
@@ -4697,7 +4729,7 @@ CPresentation.prototype =
{
if
(
target_doc_content
.
Selection
.
Use
)
{
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
removeCallback
(
1
);
oController
.
removeCallback
(
1
);
}
paragraph
=
target_doc_content
.
Content
[
target_doc_content
.
CurPos
.
ContentPos
];
if
(
null
!=
paragraph
&&
type_Paragraph
==
paragraph
.
GetType
())
...
...
@@ -4743,9 +4775,11 @@ CPresentation.prototype =
}
else
{
this
.
FocusOnNotes
=
false
;
var
shape
=
this
.
CreateAndAddShapeFromSelectedContent
(
Content
.
DocContent
);
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
resetSelection
();
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectObject
(
shape
,
0
);
this
.
CheckEmptyPlaceholderNotes
();
}
}
}
...
...
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