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
7b63c57b
Commit
7b63c57b
authored
Mar 14, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 34319
parent
9a15d499
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
13 deletions
+24
-13
common/Shapes/Serialize.js
common/Shapes/Serialize.js
+24
-13
No files found.
common/Shapes/Serialize.js
View file @
7b63c57b
...
...
@@ -4928,7 +4928,7 @@ function BinaryPPTYLoader()
if
(
!
oGroup
||
!
oGroup
.
spPr
){
return
;
}
if
(
!
oGroup
.
spPr
.
xfrm
){
if
(
!
oGroup
.
spPr
.
xfrm
&&
oGroup
.
spTree
.
length
>
0
){
var
oXfrm
=
new
AscFormat
.
CXfrm
();
oXfrm
.
setOffX
(
0
);
oXfrm
.
setOffY
(
0
);
...
...
@@ -4998,7 +4998,7 @@ function BinaryPPTYLoader()
case
1
:
{
_object
=
this
.
ReadShape
();
if
(
!
IsHiddenObj
(
_object
))
if
(
!
IsHiddenObj
(
_object
)
&&
_object
.
spPr
&&
_object
.
spPr
.
xfrm
)
{
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
_object
);
shape
.
spTree
[
shape
.
spTree
.
length
-
1
].
setGroup
(
shape
);
...
...
@@ -5009,7 +5009,7 @@ function BinaryPPTYLoader()
case
2
:
{
_object
=
this
.
ReadPic
(
6
===
_type
);
if
(
!
IsHiddenObj
(
_object
))
if
(
!
IsHiddenObj
(
_object
)
&&
_object
.
spPr
&&
_object
.
spPr
.
xfrm
)
{
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
_object
);
shape
.
spTree
[
shape
.
spTree
.
length
-
1
].
setGroup
(
shape
);
...
...
@@ -5019,7 +5019,7 @@ function BinaryPPTYLoader()
case
3
:
{
_object
=
this
.
ReadCxn
();
if
(
!
IsHiddenObj
(
_object
))
if
(
!
IsHiddenObj
(
_object
)
&&
_object
.
spPr
&&
_object
.
spPr
.
xfrm
)
{
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
_object
);
shape
.
spTree
[
shape
.
spTree
.
length
-
1
].
setGroup
(
shape
);
...
...
@@ -5029,7 +5029,7 @@ function BinaryPPTYLoader()
case
4
:
{
_object
=
this
.
ReadGroupShape
();
if
(
!
IsHiddenObj
(
_object
))
if
(
!
IsHiddenObj
(
_object
)
&&
_object
.
spPr
&&
_object
.
spPr
.
xfrm
&&
_object
.
spTree
.
length
>
0
)
{
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
_object
);
shape
.
spTree
[
shape
.
spTree
.
length
-
1
].
setGroup
(
shape
);
...
...
@@ -9153,30 +9153,38 @@ function CPres()
case
1
:
{
sp
=
this
.
ReadShape
();
if
(
sp
.
spPr
&&
sp
.
spPr
.
xfrm
){
sp
.
setGroup
(
shape
);
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
sp
);
}
break
;
}
case
6
:
case
2
:
{
sp
=
this
.
ReadPic
(
6
==
_type
);
if
(
sp
.
spPr
&&
sp
.
spPr
.
xfrm
){
sp
.
setGroup
(
shape
);
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
sp
);
}
break
;
}
case
3
:
{
sp
=
this
.
ReadCxn
();
if
(
sp
.
spPr
&&
sp
.
spPr
.
xfrm
)
{
sp
.
setGroup
(
shape
);
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
sp
);
}
break
;
}
case
4
:
{
sp
=
this
.
ReadGroupShape
();
if
(
sp
.
spPr
&&
sp
.
spPr
.
xfrm
&&
sp
.
spTree
.
length
>
0
)
{
sp
.
setGroup
(
shape
);
shape
.
addToSpTree
(
shape
.
spTree
.
length
,
sp
);
}
break
;
}
case
5
:
...
...
@@ -9206,6 +9214,9 @@ function CPres()
this
.
ParaDrawing
=
oldParaDrawing
;
s
.
Seek2
(
_end_rec
);
this
.
TempGroupObject
=
null
;
if
(
shape
.
spTree
.
length
===
0
){
return
null
;
}
return
shape
;
}
...
...
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