diff options
author | David Tardon <dtardon@redhat.com> | 2016-01-22 15:14:08 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-24 16:55:19 +0100 |
commit | 4c241896ffab41da0cc1bcbf7e3401f205da28a1 (patch) | |
tree | 8dc6f2e888f143b7440442f78fb4dcb1f95cb8f8 /vcl | |
parent | 55141ac82950aaa289fd5ec9957800030fcdba0c (diff) |
absolute seek is clearer
Change-Id: Iec8ff121e630bc6f63f935af248edce4dd572428
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index ede4c5572009..e2767cc591b0 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -845,8 +845,8 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, Bitmap* pBmpAlpha, sal_uLon aCodec.Read( rIStm, pData, nUncodedSize ); aCodec.EndCompression(); - // skip unread bytes from coded buffer - rIStm.SeekRel( nCodedSize - ( rIStm.Tell() - nCodedPos ) ); + // Seek behind the encoded block. There might have been bytes left or the codec might have read more than necessary. + rIStm.Seek(nCodedSize + nCodedPos); // set decoded bytes to memory stream, // from which we will read the bitmap data |