From 08fa440e5cdc1064f03a95325ef80418e079472c Mon Sep 17 00:00:00 2001
From: LeMoyne Castle <lemoyne.castle@gmail.com>
Date: Fri, 21 Dec 2012 09:20:16 -0700
Subject: [PATCH] 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
---
 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 36d1cea..9a65c42 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
 }
-- 
1.7.0.4

