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
1b9c1519
Commit
1b9c1519
authored
Aug 15, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug with broken presentation
parent
728a2510
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
common/Shapes/Serialize.js
common/Shapes/Serialize.js
+4
-1
slide/Editor/Format/Notes.js
slide/Editor/Format/Notes.js
+2
-2
slide/Editor/Format/NotesMaster.js
slide/Editor/Format/NotesMaster.js
+5
-5
No files found.
common/Shapes/Serialize.js
View file @
1b9c1519
...
@@ -725,7 +725,10 @@ function BinaryPPTYLoader()
...
@@ -725,7 +725,10 @@ function BinaryPPTYLoader()
if
(
this
.
presentation
.
notesMasters
.
length
===
0
)
if
(
this
.
presentation
.
notesMasters
.
length
===
0
)
{
{
this
.
presentation
.
notesMasters
[
0
]
=
AscCommonSlide
.
CreateNotesMaster
();
this
.
presentation
.
notesMasters
[
0
]
=
AscCommonSlide
.
CreateNotesMaster
();
this
.
presentation
.
notesMasters
[
0
].
setTheme
(
this
.
presentation
.
themes
[
0
]);
var
oNotesTheme
=
this
.
presentation
.
themes
[
0
].
createDuplicate
();
oNotesTheme
.
presentation
=
this
.
presentation
;
this
.
presentation
.
themes
.
push
(
oNotesTheme
);
this
.
presentation
.
notesMasters
[
0
].
setTheme
(
oNotesTheme
);
}
}
var
_slides
=
this
.
presentation
.
Slides
;
var
_slides
=
this
.
presentation
.
Slides
;
var
_slide
;
var
_slide
;
...
...
slide/Editor/Format/Notes.js
View file @
1b9c1519
...
@@ -338,7 +338,7 @@
...
@@ -338,7 +338,7 @@
oCNvPr
.
setName
(
"
Notes Placeholder 2
"
);
oCNvPr
.
setName
(
"
Notes Placeholder 2
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_body
);
oPh
.
setType
(
AscFormat
.
phType_body
);
oPh
.
setIdx
(
1
);
oPh
.
setIdx
(
1
+
""
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_sldNum
);
oPh
.
setType
(
AscFormat
.
phType_sldNum
);
oPh
.
setSz
(
2
);
oPh
.
setSz
(
2
);
oPh
.
setIdx
(
10
);
oPh
.
setIdx
(
10
+
""
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
...
...
slide/Editor/Format/NotesMaster.js
View file @
1b9c1519
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
oCNvPr
.
setName
(
"
Date Placeholder 2
"
);
oCNvPr
.
setName
(
"
Date Placeholder 2
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_dt
);
oPh
.
setType
(
AscFormat
.
phType_dt
);
oPh
.
setIdx
(
1
);
oPh
.
setIdx
(
2
+
""
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
oCNvPr
.
setName
(
"
Date Placeholder 2
"
);
oCNvPr
.
setName
(
"
Date Placeholder 2
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_dt
);
oPh
.
setType
(
AscFormat
.
phType_dt
);
oPh
.
setIdx
(
1
);
oPh
.
setIdx
(
3
+
""
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
oSp
.
setLockValue
(
AscFormat
.
LOCKS_MASKS
.
noGrp
,
true
);
...
@@ -300,7 +300,7 @@
...
@@ -300,7 +300,7 @@
oCNvPr
.
setName
(
"
Notes Placeholder 4
"
);
oCNvPr
.
setName
(
"
Notes Placeholder 4
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_body
);
oPh
.
setType
(
AscFormat
.
phType_body
);
oPh
.
setIdx
(
1
);
oPh
.
setIdx
(
1
+
""
);
oPh
.
setSz
(
2
);
oPh
.
setSz
(
2
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
...
@@ -339,7 +339,7 @@
...
@@ -339,7 +339,7 @@
oCNvPr
.
setName
(
"
Footer Placeholder 5
"
);
oCNvPr
.
setName
(
"
Footer Placeholder 5
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_ftr
);
oPh
.
setType
(
AscFormat
.
phType_ftr
);
oPh
.
setIdx
(
4
);
oPh
.
setIdx
(
4
+
""
);
oPh
.
setSz
(
2
);
oPh
.
setSz
(
2
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
oCNvPr
.
setName
(
"
Slide Number Placeholder 6
"
);
oCNvPr
.
setName
(
"
Slide Number Placeholder 6
"
);
oPh
=
new
AscFormat
.
Ph
();
oPh
=
new
AscFormat
.
Ph
();
oPh
.
setType
(
AscFormat
.
phType_sldNum
);
oPh
.
setType
(
AscFormat
.
phType_sldNum
);
oPh
.
setIdx
(
5
);
oPh
.
setIdx
(
10
+
""
);
oPh
.
setSz
(
2
);
oPh
.
setSz
(
2
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oNvSpPr
.
nvPr
.
setPh
(
oPh
);
oSp
.
setNvSpPr
(
oNvSpPr
);
oSp
.
setNvSpPr
(
oNvSpPr
);
...
...
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