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
512dad1d
Commit
512dad1d
authored
Feb 28, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix double write attribute in background
parent
3d684934
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
37 deletions
+6
-37
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+2
-0
Common/DocxFormat/Source/DocxFormat/Logic/Vml.h
Common/DocxFormat/Source/DocxFormat/Logic/Vml.h
+4
-37
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
512dad1d
...
...
@@ -4841,6 +4841,8 @@ HRESULT CDrawingConverter::SaveObjectEx(LONG lStart, LONG lLength, const std::ws
}
std
::
wstring
CDrawingConverter
::
SaveObjectBackground
(
LONG
lStart
,
LONG
lLength
)
{
if
(
lLength
<
1
)
return
L""
;
m_pReader
->
Seek
(
lStart
);
++
m_nCurrentIndexObject
;
...
...
Common/DocxFormat/Source/DocxFormat/Logic/Vml.h
View file @
512dad1d
...
...
@@ -662,9 +662,6 @@ namespace OOX
sResult
+=
CVmlCommonElements
::
WriteAttributes
();
ComplexTypes_WriteAttribute
(
_T
(
"o:bwmode=
\"
"
),
m_oBwMode
);
ComplexTypes_WriteAttribute
(
_T
(
"o:bwpure=
\"
"
),
m_oBwPure
);
ComplexTypes_WriteAttribute
(
_T
(
"o:bwnormal=
\"
"
),
m_oBwNormal
);
ComplexTypes_WriteAttribute
(
_T
(
"o:targetscreensize=
\"
"
),
m_oTargetScreenSize
);
sResult
+=
_T
(
">"
);
...
...
@@ -684,45 +681,15 @@ namespace OOX
void
ReadAttributes
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
// Читаем атрибуты
if
(
oReader
.
GetAttributesCount
()
<=
0
)
return
;
if
(
!
oReader
.
MoveToFirstAttribute
()
)
return
;
std
::
wstring
wsName
=
oReader
.
GetName
();
while
(
!
wsName
.
empty
()
)
{
wchar_t
wsChar
=
wsName
[
0
];
switch
(
wsChar
)
{
case
'o'
:
if
(
_T
(
"o:bwmode"
)
==
wsName
)
m_oBwMode
=
oReader
.
GetText
();
else
if
(
_T
(
"o:bwnormal"
)
==
wsName
)
m_oBwNormal
=
oReader
.
GetText
();
else
if
(
_T
(
"o:bwpure"
)
==
wsName
)
m_oBwPure
=
oReader
.
GetText
();
break
;
case
't'
:
if
(
_T
(
"o:targetscreensize"
)
==
wsName
)
m_oTargetScreenSize
=
oReader
.
GetText
();
break
;
}
if
(
!
oReader
.
MoveToNextAttribute
()
)
break
;
wsName
=
oReader
.
GetName
();
}
oReader
.
MoveToElement
();
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_ReadSingle
(
oReader
,
_T
(
"o:targetscreensize"
),
m_oTargetScreenSize
)
WritingElement_ReadAttributes_End
(
oReader
)
}
public:
// Attributes
nullable
<
SimpleTypes
::
CBWMode
<>>
m_oBwMode
;
nullable
<
SimpleTypes
::
CBWMode
<>>
m_oBwNormal
;
nullable
<
SimpleTypes
::
CBWMode
<>>
m_oBwPure
;
nullable
<
SimpleTypes
::
CScreenSize
<>>
m_oTargetScreenSize
;
nullable
<
SimpleTypes
::
CScreenSize
<>>
m_oTargetScreenSize
;
};
//--------------------------------------------------------------------------------
...
...
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