sc/source/filter/html/htmlpars.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 54d577ed22fd4bae093639be3056a722f5a40bb2 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Apr 12 15:24:53 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Apr 12 21:40:09 2024 +0200 ofz#68004 Unknown Read Change-Id: Id3e50e3a8522523d2b665e394d8f4a65b7f4df5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166034 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 83d9c01fbf7e..5d27f751ab6c 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -778,7 +778,7 @@ void ScHTMLLayoutParser::SetWidths() if ( pE->nTab == nTable && pE->nWidth ) { SCCOL nCol = pE->nCol - nColCntStart; - if ( nCol < nColsPerRow ) + if (nCol >= 0 && nCol < nColsPerRow) { if ( pE->nColOverlap == 1 ) {