[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Mar 23 07:14:12 PDT 2012


 sc/source/filter/html/htmlexp.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2ccb55183e1131039f062abbbd95caf1451c5efe
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Mar 23 04:27:45 2012 +0100

    increase nCol before next iteratation to prevent loop, fdo#46220
    
    Signed-off-by: Kohei Yoshida <kohei.yoshida at gmail.com>

diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 0e8fee9..16f4826 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -777,7 +777,11 @@ void ScHTMLExport::WriteTables()
             while( nCol <= nEndCol )
             {
                 if( pDoc->ColHidden(nCol, nTab) )
+                {
+                    ++nCol;
                     continue;
+                }
+
                 if( nWidth != ToPixel( pDoc->GetColWidth( nCol, nTab ) ) )
                 {
                     if( nSpan != 0 )


More information about the Libreoffice-commits mailing list