diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-24 20:10:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-25 09:28:05 +0200 |
commit | d5823f417248663d78072e2a0be162175def2235 (patch) | |
tree | 577eb3f5d37ba27a2f3be49257ac4024e8e5d9e4 | |
parent | NotoSansHebrew: upgrade to v2.004 (diff) | |
download | core-d5823f417248663d78072e2a0be162175def2235.tar.gz core-d5823f417248663d78072e2a0be162175def2235.zip |
ofz#68269 more fixes to sc html parser
Change-Id: I2fd889c438d4707a4e174a5a4300e742cd895d3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166607
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index cba641f5136f..6e87e67fe2af 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -689,7 +689,7 @@ void ScHTMLLayoutParser::Adjust() if ( pE->nCol != nColBeforeSkip ) { size_t nCount = maColOffset.size(); - if ( nCount <= o3tl::make_unsigned(pE->nCol) ) + if (pE->nCol < 0 || nCount <= o3tl::make_unsigned(pE->nCol)) { pE->nOffset = static_cast<sal_uInt16>(maColOffset[nCount-1]); MakeCol( &maColOffset, pE->nOffset, pE->nWidth, nOffsetTolerance, nOffsetTolerance ); |