sc/source/filter/html/htmlpars.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 01e4bcacbefe8c6a6ba4d7627dc7aab412218eb1 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Mar 28 09:09:00 2024 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Apr 2 20:45:44 2024 +0200 ofz: negative column offset Change-Id: Ieeb06e5c5d28f1c457db369a732bc37a7d5f2be8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165421 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index e5bcc4d2891b..ede9eaf4912a 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -837,6 +837,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 )
