diff options
-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 ) |