diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpgrfobj.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpgrfobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index bf04563f8732..df843a9f8703 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -367,7 +367,7 @@ sal_uInt32 LwpGraphicObject::GetRawGrafData(sal_uInt8*& pGrafData) // read image data sal_uInt32 nDataLen = pMemGrafStream->GetEndOfData(); pGrafData = new sal_uInt8 [nDataLen]; - pMemGrafStream->Read(pGrafData, nDataLen); + pMemGrafStream->ReadBytes(pGrafData, nDataLen); delete pMemGrafStream; pMemGrafStream = nullptr; @@ -418,7 +418,7 @@ sal_uInt32 LwpGraphicObject::GetGrafData(sal_uInt8*& pGrafData) pGrafStream->Seek(nPos); pGrafData = new sal_uInt8 [nDataLen]; - pMemGrafStream->Read(pGrafData, nDataLen); + pMemGrafStream->ReadBytes(pGrafData, nDataLen); delete pMemGrafStream; pMemGrafStream = nullptr; |