diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpgrfobj.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpgrfobj.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index 2fc8d2ee3380..61f35d0879e4 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -384,10 +384,7 @@ sal_uInt32 LwpGraphicObject::GetGrafData(sal_uInt8*& pGrafData) if (pMemGrafStream) { // read image data - sal_uInt32 nPos = pGrafStream->Tell(); - pGrafStream->Seek(STREAM_SEEK_TO_END); - sal_uInt32 nDataLen = pGrafStream->Tell(); - pGrafStream->Seek(nPos); + sal_uInt32 nDataLen = pGrafStream->TellEnd(); pGrafData = new sal_uInt8 [nDataLen]; pMemGrafStream->ReadBytes(pGrafData, nDataLen); |