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
d2c5ea02
Commit
d2c5ea02
authored
Dec 21, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OOXML - fix ole object read
parent
419ec7ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.vcproj
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.vcproj
+1
-1
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+16
-1
X2tConverter/test/win32Test/X2tTest.vcproj
X2tConverter/test/win32Test/X2tTest.vcproj
+1
-0
No files found.
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.vcproj
View file @
d2c5ea02
...
...
@@ -47,7 +47,7 @@
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE;USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;__WORDSIZE=32;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"
3
"
RuntimeLibrary=
"
1
"
UsePrecompiledHeader=
"0"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
...
...
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
d2c5ea02
...
...
@@ -1502,7 +1502,22 @@ bool CDrawingConverter::ParceObject(const std::wstring& strXml, std::wstring** p
if
(
pElem
&&
NULL
!=
pOle
&&
pOle
->
m_sProgId
.
IsInit
()
&&
(
pOle
->
m_oId
.
IsInit
()
||
pOle
->
m_OleObjectFile
.
IsInit
()))
{
PPTX
::
Logic
::
Pic
*
pPicture
=
dynamic_cast
<
PPTX
::
Logic
::
Pic
*>
(
pElem
->
GetElem
().
operator
->
());
if
((
NULL
!=
pPicture
)
&&
(
pPicture
->
blipFill
.
blip
.
IsInit
()))
PPTX
::
Logic
::
Shape
*
pShape
=
dynamic_cast
<
PPTX
::
Logic
::
Shape
*>
(
pElem
->
GetElem
().
operator
->
());
if
((
!
pPicture
&&
pShape
)
&&
(
pShape
->
spPr
.
Fill
.
is
<
PPTX
::
Logic
::
BlipFill
>
()))
{
//convert pptx shape to pptx picture
pPicture
=
new
PPTX
::
Logic
::
Pic
();
pPicture
->
nvPicPr
.
nvPr
=
pShape
->
nvSpPr
.
nvPr
;
pPicture
->
nvPicPr
.
cNvPr
=
pShape
->
nvSpPr
.
cNvPr
;
pPicture
->
spPr
=
pShape
->
spPr
;
pPicture
->
blipFill
=
pShape
->
spPr
.
Fill
.
as
<
PPTX
::
Logic
::
BlipFill
>
();
pPicture
->
spPr
.
Fill
=
PPTX
::
Logic
::
UniFill
();
pShape
=
NULL
;
pElem
->
InitElem
(
pPicture
);
}
if
((
pPicture
)
&&
(
pPicture
->
blipFill
.
blip
.
IsInit
()))
{
if
(
pOle
->
m_OleObjectFile
.
IsInit
())
{
...
...
X2tConverter/test/win32Test/X2tTest.vcproj
View file @
d2c5ea02
...
...
@@ -49,6 +49,7 @@
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"1"
UsePrecompiledHeader=
"0"
ProgramDataBaseFileName=
"$(IntDir)\X2tTestD.pdb"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"4"
...
...
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