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
43abe817
Commit
43abe817
authored
Aug 18, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 32958
parent
49ab2346
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
+12
-11
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
...ficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
+1
-0
No files found.
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
View file @
43abe817
...
...
@@ -1297,6 +1297,17 @@ CString NSPresentationEditor::CShapeWriter::ConvertImage()
m_pImageElement
->
m_strImageFileName
.
clear
();
m_pImageElement
->
m_bImagePresent
=
true
;
}
CString
strRid
;
if
(
!
m_pImageElement
->
m_strImageFileName
.
empty
())
{
strRid
=
m_pRels
->
WriteImage
(
m_pImageElement
->
m_strImageFileName
);
}
else
if
(
!
m_pImageElement
->
m_sImageName
.
empty
())
{
strRid
=
m_pRels
->
WriteHyperlinkImage
(
CorrectXmlString3
(
m_pImageElement
->
m_sImageName
));
}
if
(
strRid
.
IsEmpty
())
return
_T
(
""
);
m_oWriter
.
WriteString
(
std
::
wstring
(
L"<p:pic>"
));
...
...
@@ -1313,18 +1324,8 @@ CString NSPresentationEditor::CShapeWriter::ConvertImage()
oInfo
.
m_lOriginalHeight
=
(
LONG
)
m_pImageElement
->
m_rcBoundsOriginal
.
GetHeight
();
m_oWriter
.
WriteString
(
std
::
wstring
(
L"<p:blipFill>"
));
CString
strRid
;
if
(
m_pImageElement
->
m_strImageFileName
.
empty
())
{
strRid
=
m_pRels
->
WriteHyperlinkImage
(
CorrectXmlString3
(
m_pImageElement
->
m_sImageName
));
}
else
{
strRid
=
m_pRels
->
WriteImage
(
m_pImageElement
->
m_strImageFileName
);
}
CString
strWrite
=
_T
(
"<a:blip r:embed=
\"
"
)
+
strRid
+
_T
(
"
\"
/>"
);
m_oWriter
.
WriteString
(
strWrite
);
m_oWriter
.
WriteString
(
std
::
wstring
(
L"<a:srcRect"
));
...
...
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
View file @
43abe817
...
...
@@ -247,6 +247,7 @@ public:
case
NSPresentationEditor
:
:
etPicture
:
{
//default -> line = false
pElement
->
m_oBrush
.
Type
=
c_BrushTypeTexture
;
pElement
->
m_bLine
=
false
;
for
(
long
i
=
0
;
i
<
lCount
;
++
i
)
{
...
...
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