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
bf6bfce0
Commit
bf6bfce0
authored
Mar 24, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 34509
parent
805c24ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
ASCOfficePPTXFile/PPTXFormat/Logic/CNvPr.h
ASCOfficePPTXFile/PPTXFormat/Logic/CNvPr.h
+13
-2
Common/DocxFormat/Source/DocxFormat/Drawing/DrawingCoreInfo.cpp
.../DocxFormat/Source/DocxFormat/Drawing/DrawingCoreInfo.cpp
+3
-1
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/CNvPr.h
View file @
bf6bfce0
...
...
@@ -111,7 +111,13 @@ namespace PPTX
XmlUtils
::
CAttribute
oAttr
;
oAttr
.
Write
(
_T
(
"id"
),
id
);
oAttr
.
Write
(
_T
(
"name"
),
XmlUtils
::
EncodeXmlString
(
name
));
if
(
descr
.
IsInit
())
oAttr
.
Write
(
_T
(
"descr"
),
XmlUtils
::
EncodeXmlString
(
descr
.
get
()));
if
(
descr
.
IsInit
())
{
std
::
wstring
d
=
XmlUtils
::
EncodeXmlString
(
descr
.
get
());
XmlUtils
::
replace_all
(
d
,
L"
\n
"
,
L"
"
);
oAttr
.
Write
(
_T
(
"descr"
),
d
);
}
oAttr
.
Write
(
_T
(
"hidden"
),
hidden
);
if
(
title
.
IsInit
())
oAttr
.
Write
(
_T
(
"title"
),
XmlUtils
::
EncodeXmlString
(
title
.
get
()));
...
...
@@ -157,7 +163,12 @@ namespace PPTX
pWriter
->
StartAttributes
();
pWriter
->
WriteAttribute
(
_T
(
"id"
),
_id
);
pWriter
->
WriteAttribute
(
_T
(
"name"
),
XmlUtils
::
EncodeXmlString
(
name
));
if
(
descr
.
IsInit
())
pWriter
->
WriteAttribute
(
_T
(
"descr"
),
XmlUtils
::
EncodeXmlString
(
descr
.
get
()));
if
(
descr
.
IsInit
())
{
std
::
wstring
d
=
XmlUtils
::
EncodeXmlString
(
descr
.
get
());
XmlUtils
::
replace_all
(
d
,
L"
\n
"
,
L"
"
);
pWriter
->
WriteAttribute
(
_T
(
"descr"
),
d
);
}
pWriter
->
WriteAttribute
(
_T
(
"hidden"
),
hidden
);
if
(
title
.
IsInit
())
pWriter
->
WriteAttribute
(
_T
(
"title"
),
XmlUtils
::
EncodeXmlString
(
title
.
get
()));
...
...
Common/DocxFormat/Source/DocxFormat/Drawing/DrawingCoreInfo.cpp
View file @
bf6bfce0
...
...
@@ -176,7 +176,9 @@ namespace OOX
if
(
m_sDescr
.
IsInit
()
)
{
sResult
+=
_T
(
"descr=
\"
"
);
sResult
+=
m_sDescr
.
get2
();
std
::
wstring
d
=
XmlUtils
::
EncodeXmlString
(
m_sDescr
.
get
());
XmlUtils
::
replace_all
(
d
,
L"
\n
"
,
L"
"
);
sResult
+=
d
;
sResult
+=
_T
(
"
\"
"
);
}
if
(
m_oHidden
.
IsInit
()
)
sResult
+=
_T
(
"hidden=
\"
"
)
+
m_oHidden
->
ToString
()
+
_T
(
"
\"
"
);
...
...
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