[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    KOFFICE_1_3_BRANCH: koffice/filters/kspread/html
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-01-01 12:11:18
Message-ID: 20040101121118.C13B393EA () office ! kde ! org
[Download RAW message or body]

CVS commit by goutte: 

Be careful that it exists border cases that could lead to a crash
(Backport)
CCMAIL:koffice-devel@kde.org


  M +3 -2      htmlexport.cc   1.19.2.1


--- koffice/filters/kspread/html/htmlexport.cc  #1.19:1.19.2.1
@@ -159,5 +159,5 @@ KoFilter::ConversionStatus HTMLExport::c
       for ( currentrow = 1 ; currentrow < iMaxRow ; ++currentrow)
       {
-        KSpreadCell * cell;
+        KSpreadCell * cell = 0L;
         iUsedColumn=0;
         for ( currentcolumn = 1 ; currentcolumn < iMaxColumn ; currentcolumn++ )
@@ -170,4 +170,5 @@ KoFilter::ConversionStatus HTMLExport::c
             }
         }
+        if (cell)
         iUsedColumn += cell->extraXCells();
         if (iUsedColumn > iMaxUsedColumn)


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic