Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
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
onlyoffice_core
Commits
181eb8cf
Commit
181eb8cf
authored
Sep 19, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 33126
parent
b5743ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
+15
-5
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
View file @
181eb8cf
...
...
@@ -128,13 +128,21 @@ namespace PPTX
void
COLEObject
::
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
{
std
::
wstring
sData
;
if
(
m_oId
.
IsInit
(
)
&&
m_sProgId
.
IsInit
()
&&
0
==
m_sProgId
.
get
().
Find
(
L"asc."
))
if
(
(
m_oId
.
IsInit
()
||
m_sFilepathBin
.
IsInit
()
)
&&
m_sProgId
.
IsInit
()
&&
0
==
m_sProgId
.
get
().
Find
(
L"asc."
))
{
FileContainer
*
pRels
=
NULL
;
if
(
pWriter
->
m_pCommonRels
->
is_init
())
pRels
=
pWriter
->
m_pCommonRels
->
operator
->
();
CString
sFilePath
;
if
(
m_sFilepathBin
.
IsInit
())
{
sFilePath
=
m_sFilepathBin
.
get
();
}
else
if
(
m_oId
.
IsInit
())
{
FileContainer
*
pRels
=
NULL
;
if
(
pWriter
->
m_pCommonRels
->
is_init
())
pRels
=
pWriter
->
m_pCommonRels
->
operator
->
();
CString
sFilePath
=
this
->
GetFullOleName
(
PPTX
::
RId
(
m_oId
.
get
()),
pRels
);
sFilePath
=
this
->
GetFullOleName
(
PPTX
::
RId
(
m_oId
.
get
()),
pRels
);
}
if
(
!
sFilePath
.
IsEmpty
())
{
sData
=
GetOleData
(
string2std_string
(
sFilePath
));
...
...
@@ -338,6 +346,8 @@ namespace PPTX
spPr
.
SetParentPointer
(
this
);
if
(
style
.
IsInit
())
style
->
SetParentPointer
(
this
);
if
(
oleObject
.
IsInit
())
oleObject
->
SetParentPointer
(
this
);
}
void
Pic
::
GetRect
(
Aggplus
::
RECT
&
pRect
)
const
...
...
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