# HG changeset patch
# User Michael Stahl <mst@openoffice.org>
# Date 1304700972 0
# Node ID 1b1664391057d094b9eaed2face3c9218c62687c
# Parent  7f569426919b700819b6f1e46378254310621f48
rtftok01: #i113098#: workaround for resolveCurrentTable with no table

diff --git a/writerfilter/inc/resourcemodel/TableManager.hxx b/writerfilter/inc/resourcemodel/TableManager.hxx
--- a/writerfilter/inc/resourcemodel/TableManager.hxx
+++ b/writerfilter/inc/resourcemodel/TableManager.hxx
@@ -977,6 +977,8 @@
 
         unsigned int nRows = pTableData->getRowCount();
 
+        if (nRows) { // assert?
+
         mpTableDataHandler->startTable(nRows, pTableData->getDepth(), getTableProps());
 
         for (unsigned int nRow = 0; nRow < nRows; ++nRow)
@@ -1000,6 +1002,8 @@
         }
 
         mpTableDataHandler->endTable();
+
+        }
     }
     resetTableProps();
     clearData();
