diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-03 14:09:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-05 16:04:46 +0200 |
commit | fd7bd64ce930724ff5a60414b94a3c122f29d2aa (patch) | |
tree | 2fbb097404fb60349d97f6b28efb7c7d5792f9fb /sc | |
parent | 71d50be222f2d1fc2476a4d6f31b461d03adf9c5 (diff) |
ofz#67815 overflowed short
Change-Id: Iee9a5caee53b522ed16d234c2bc06987264e23db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165751
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165812
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index d1a99003b11c..e1166542e2f5 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -828,12 +828,12 @@ void ScHTMLLayoutParser::SetWidths() pWidths[nCol] = nW; } } - for (SCCOL nCol = 1; nCol <= nColsPerRow; nCol++) + for (int nCol = 1; nCol <= nColsPerRow; nCol++) { pOffsets[nCol] = pOffsets[nCol-1] + pWidths[nCol-1]; } xLocalColOffset->clear(); - for (SCCOL nCol = 0; nCol <= nColsPerRow; nCol++) + for (int nCol = 0; nCol <= nColsPerRow; nCol++) { MakeColNoRef( xLocalColOffset.get(), pOffsets[nCol], 0, 0, 0 ); } |