diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-04 12:31:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-04 12:32:29 +0100 |
commit | f2cffa12672175e69924746c341bbfd93dcce509 (patch) | |
tree | 094eb94f516cd7da4e27854837b0ff76f401b4e7 | |
parent | 1d094369dced5f84991b95aa965ade12e68f69c5 (diff) |
fix DEBUG_FILTER_MSDFFIMP code
Change-Id: I3463935177166a808c46a5bdffcda02f45f371c5
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index de7d3272329e..6c749473d1f9 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -6432,19 +6432,19 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, tool { if ( bZCodecCompression ) { - xOut->Seek( STREAM_SEEK_TO_END ); - pDbgOut->Write( xOut->GetData(), xOut->Tell() ); - xOut->Seek( STREAM_SEEK_TO_BEGIN ); + xOut->Seek(STREAM_SEEK_TO_END); + pDbgOut->WriteBytes(xOut->GetData(), xOut->Tell()); + xOut->Seek(STREAM_SEEK_TO_BEGIN); } else { sal_Int32 nDbgLen = nLength - nSkip; if ( nDbgLen ) { - std::unique_ptr<sal_Char[]> xDat(new sal_Char[ nDbgLen ]); - pGrStream->Read( xDat.get(), nDbgLen ); - pDbgOut->Write( xDat.get(), nDbgLen ); - pGrStream->SeekRel( -nDbgLen ); + std::vector<sal_Char> aData(nDbgLen); + pGrStream->ReadBytes(aData.data(), nDbgLen); + pDbgOut->WriteBytes(aData.data(), nDbgLen); + pGrStream->SeekRel(-nDbgLen); } } } |