diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-03-28 09:09:00 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2024-04-03 14:38:51 +0200 |
commit | fea111e56804ec761152af31fd083fb79b194cdf (patch) | |
tree | d9ae1589459ac5419f1754173dcf21b418f63a03 | |
parent | ofz#67540 negative offset (diff) | |
download | core-fea111e56804ec761152af31fd083fb79b194cdf.tar.gz core-fea111e56804ec761152af31fd083fb79b194cdf.zip |
ofz: negative column offset
Change-Id: Ieeb06e5c5d28f1c457db369a732bc37a7d5f2be8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165419
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 3f8c81f3f9ba1e27c97894c73e8802e5fdecf94b)
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 8abe9a4e95d9..1c230205e89b 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -737,6 +737,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 ) |