diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-09-24 14:55:02 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-10-23 11:53:14 +0200 |
commit | b7266ddb2f580a2ed3c558d1996b5e2760023145 (patch) | |
tree | a2a130ee1dc29c1b07497c499dd3ac3afd6a371b /sd | |
parent | 5c8ea6d943ef37d73069288f9ef7dbd374721a71 (diff) |
FastSerializer: Buffer output and write it only at the end
Use OSequenceOutputStream class to concatenate strings in a
Sequence<sal_Int8> buffer. And write data to file only at the end.
The design is a bit fragile, since all FSHelpers need to be destroyed
before calling FilterBase::commitStorage(). Otherwise data is not written.
Change-Id: I26b02335ef36011bfcda17484b560811d18c7657
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index caf46c66ba4b..9fb836bf875f 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -384,6 +384,8 @@ bool PowerPointExport::exportDocument() throw (css::uno::RuntimeException, std:: mPresentationFS->endElementNS( XML_p, XML_presentation ); mPresentationFS.reset(); + // Free all FSHelperPtr, to flush data before commiting storage + mpSlidesFSArray.clear(); commitStorage(); |