summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-23 04:27:45 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-23 04:36:22 +0100
commitc4744121f12fde51de2d92d2442d590d93725ffc (patch)
treec44762c12c61071d0f515951f1887f78726ee567
parente4380ae1e7d5330e26f4a382f3a86a6059b9b53f (diff)
increase nCol before next iteratation to prevent loop, fdo#46220
-rw-r--r--sc/source/filter/html/htmlexp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 538eb092abbc..af0689abe279 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -769,7 +769,11 @@ void ScHTMLExport::WriteTables()
while( nCol <= nEndCol )
{
if( pDoc->ColHidden(nCol, nTab) )
+ {
+ ++nCol;
continue;
+ }
+
if( nWidth != ToPixel( pDoc->GetColWidth( nCol, nTab ) ) )
{
if( nSpan != 0 )