diff options
author | LeMoyne Castle <lemoyne.castle@gmail.com> | 2012-12-21 09:20:16 -0700 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-12-25 06:37:05 +0000 |
commit | 2d8a50d3f8a5af914e2e184796bfab05df52c539 (patch) | |
tree | ffef6ab6ef40cc4ffac3ded045534d33551cc20b | |
parent | 071b7eea798acfbe765c462c5d5b9a45abd13f63 (diff) |
Fix for rtfexport subsequenttest
was re-using previous data buffer in later write to file
fixes crash in subsequenttest
should correct some image garbling in rtfs
Change-Id: I922d04b621a85997611f537fe1f1ca9460676056
Reviewed-on: https://gerrit.libreoffice.org/1464
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 36d1ceaa49ff..9a65c42c0d5f 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -3347,7 +3347,7 @@ void RtfAttributeOutput::FlyFrameOLEReplacement(const SwFlyFrmFmt* pFlyFrmFmt, S OSL_FAIL("failed to export the graphic"); aWmfStream.Seek(STREAM_SEEK_TO_END); nSize = aWmfStream.Tell(); - pGraphicAry = (sal_uInt8*)aStream.GetData(); + pGraphicAry = (sal_uInt8*)aWmfStream.GetData(); m_aRunText->append(ExportPICT( pFlyFrmFmt, aSize, aRendered, aMapped, rCr, pBLIPType, pGraphicAry, nSize, m_rExport )); m_aRunText->append("}"); // nonshppict } |