diff options
Diffstat (limited to 'lotuswordpro/source/filter/explode.cxx')
-rw-r--r-- | lotuswordpro/source/filter/explode.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/explode.cxx b/lotuswordpro/source/filter/explode.cxx index 1cc895ec6c8a..fa04eac514d2 100644 --- a/lotuswordpro/source/filter/explode.cxx +++ b/lotuswordpro/source/filter/explode.cxx @@ -311,7 +311,7 @@ sal_Int32 Decompression::explode() // point back to copy position and read bytes m_pOutStream->SeekRel(-static_cast<long>(distance)); sal_uInt8 sTemp[MAXWIN]; - sal_uInt32 nRead = distance > Length? Length:distance; + sal_uInt32 nRead = std::min(distance, Length); m_pOutStream->ReadBytes(sTemp, nRead); if (nRead != Length) { |