sc/source/filter/html/htmlpars.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 666e4e6fc9202577b91addb9054c7b1160a2b7b7 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Mar 28 09:09:00 2024 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Apr 3 14:26:23 2024 +0200 ofz: negative column offset Change-Id: Ieeb06e5c5d28f1c457db369a732bc37a7d5f2be8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165418 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index d67cc7de4cdc..82aef16fed9a 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -834,6 +834,11 @@ void ScHTMLLayoutParser::SetWidths() OSL_ENSURE( nCol < nColsPerRow, "ScHTMLLayoutParser::SetWidths: column overflow" ); if (nCol >= nColsPerRow) continue; + if (nCol < 0) + { + SAL_WARN("sc", "negative offset: " << nCol); + continue; + } pE->nOffset = pOffsets[nCol]; nCol = nCol + pE->nColOverlap; if ( nCol > nColsPerRow )