diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-29 10:18:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-29 13:11:05 +0200 |
commit | 21508828c5f54559ea180d2a465a8866cd765a4d (patch) | |
tree | 4d1d8827d73a0e48d5bf6543ef15bcf3b8ebbf7c /sc | |
parent | 2e4f1af79cf58f8750d3b6b21e47caff8704c13f (diff) |
improve scoping
Change-Id: Ib41052e099defd691d2a864fb7da6390e3a49425
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113300
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 0e46318a6838..09c8a0b4b034 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -957,9 +957,8 @@ void XclImpDrawObjBase::ImplReadObj8( XclImpStream& rStrm ) if( !((rStrm.GetNextRecId() == EXC_ID3_IMGDATA) && rStrm.StartNextRecord()) ) return; - sal_uInt32 nDataSize; rStrm.Ignore( 4 ); - nDataSize = rStrm.ReaduInt32(); + sal_uInt32 nDataSize = rStrm.ReaduInt32(); nDataSize -= rStrm.GetRecLeft(); // skip following CONTINUE records until IMGDATA ends while( (nDataSize > 0) && (rStrm.GetNextRecId() == EXC_ID_CONT) && rStrm.StartNextRecord() ) |