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
ebdfb2f7
Commit
ebdfb2f7
authored
Sep 29, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OOxmlFormat - fix users files
parent
5f0e6349
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
+8
-4
Common/DocxFormat/Source/XlsxFormat/Chart/ChartSerialize.cpp
Common/DocxFormat/Source/XlsxFormat/Chart/ChartSerialize.cpp
+10
-2
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
View file @
ebdfb2f7
...
...
@@ -174,6 +174,7 @@ namespace PPTX
NSBinPptxRW
::
CBinaryFileWriter
*
old_writer
=
oDrawingConverter
.
m_pBinaryWriter
;
NSCommon
::
smart_ptr
<
OOX
::
IFileContainer
>
old_rels
=
*
pWriter
->
m_pCurrentContainer
;
BinDocxRW
::
CDocxSerializer
*
old_serial
=
pWriter
->
m_pMainDocument
;
NSCommon
::
smart_ptr
<
PPTX
::
Theme
>
old_theme
=
*
pWriter
->
m_pTheme
;
oDrawingConverter
.
m_pBinaryWriter
=
pWriter
;
oDocxSerializer
.
m_pParamsWriter
=
new
BinDocxRW
::
ParamsWriter
(
pWriter
,
&
oFontProcessor
,
&
oDrawingConverter
,
NULL
);
...
...
@@ -189,6 +190,7 @@ namespace PPTX
oDrawingConverter
.
m_pBinaryWriter
=
old_writer
;
*
pWriter
->
m_pCurrentContainer
=
old_rels
;
pWriter
->
m_pMainDocument
=
old_serial
;
*
pWriter
->
m_pTheme
=
old_theme
;
}
else
if
(
office_checker
.
nFileType
==
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSX
||
office_checker
.
nFileType
==
AVS_OFFICESTUDIO_FILE_SPREADSHEET_XLSM
)
...
...
@@ -203,6 +205,7 @@ namespace PPTX
NSBinPptxRW
::
CBinaryFileWriter
*
old_writer
=
oDrawingConverter
.
m_pBinaryWriter
;
NSCommon
::
smart_ptr
<
OOX
::
IFileContainer
>
old_rels
=
*
pWriter
->
m_pCurrentContainer
;
NSCommon
::
smart_ptr
<
PPTX
::
Theme
>
old_theme
=
*
pWriter
->
m_pTheme
;
oDrawingConverter
.
m_pBinaryWriter
=
pWriter
;
...
...
@@ -215,6 +218,7 @@ namespace PPTX
oDrawingConverter
.
m_pBinaryWriter
=
old_writer
;
*
pWriter
->
m_pCurrentContainer
=
old_rels
;
*
pWriter
->
m_pTheme
=
old_theme
;
}
//else if (office_checker.nFileType == AVS_OFFICESTUDIO_FILE_PRESENTATION_PPTX)
//{
...
...
Common/DocxFormat/Source/XlsxFormat/Chart/ChartSerialize.cpp
View file @
ebdfb2f7
...
...
@@ -2771,8 +2771,16 @@ namespace OOX{
if
(
_T
(
"val"
)
==
wsName
)
{
double
*
pNewElem
=
new
double
;
std
::
wstring
sVal
=
oReader
.
GetText
();
std
::
wstring
sVal
=
oReader
.
GetText
();
// Yp2bbamFbt1iHeX3WM0_.pptx - value = "-"
*
pNewElem
=
0
;
__try
{
*
pNewElem
=
_tstof
(
sVal
.
c_str
());
}
catch
(...)
{
}
m_val
=
pNewElem
;
}
WritingElement_ReadAttributes_End_No_NS
(
oReader
)
...
...
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