Kaydet (Commit) 2d8a50d3 authored tarafından LeMoyne Castle's avatar LeMoyne Castle Kaydeden (comit) Norbert Thiebaud

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/1464Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 071b7eea
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment