sc/source/filter/excel/impop.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7c2e6058439da9d061e5e0bbd07c8b6d4f2ffcbf Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Apr 11 11:08:40 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Apr 11 14:48:18 2021 +0200 require only as much remaining data as is necessary Change-Id: If26562a7d5bede1dea414cbe24871b1dd75bfe23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113943 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index b461642a13cd..fdc360ff4fcc 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -861,7 +861,7 @@ void ImportExcel::Mulrk() XclAddress aXclPos; aIn >> aXclPos; - for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() > 6); ++aCurrXclPos.mnCol ) + for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() >= 6); ++aCurrXclPos.mnCol ) { sal_uInt16 nXF = aIn.ReaduInt16(); sal_Int32 nRkNum = aIn.ReadInt32(); @@ -880,7 +880,7 @@ void ImportExcel::Mulblank() XclAddress aXclPos; aIn >> aXclPos; - for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() > 2); ++aCurrXclPos.mnCol ) + for( XclAddress aCurrXclPos( aXclPos ); (aXclPos.mnCol <= aCurrXclPos.mnCol) && (aIn.GetRecLeft() >= 2); ++aCurrXclPos.mnCol ) { sal_uInt16 nXF = aIn.ReaduInt16(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits