~ubuntu-branches/ubuntu/gutsy/libwpd/gutsy

« back to all changes in this revision

Viewing changes to src/lib/WP6StylesListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-03-16 10:17:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070316101721-e99xqbffo7rmm5vo
Tags: 0.8.9-1
* new upstream release
  - fixes CVE-2007-0002
* merge 0.8.7-5s Depends: fix (closes: #409312)

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        if (!isUndoOn())
242
242
        {
243
243
                m_isTableDefined = false;
 
244
                m_currentTable = 0;
244
245
        }
245
246
}
246
247
 
247
248
void WP6StylesListener::insertRow(const uint16_t /* rowHeight */, const bool /* isMinimumHeight */, const bool /* isHeaderRow */)
248
249
{
249
 
        if (!isUndoOn()) 
 
250
        if (!isUndoOn() && m_currentTable) 
250
251
        {
251
252
                m_currentPageHasContent = true;
252
253
                m_currentTable->insertRow();
258
259
                                const RGBSColor * /* cellBorderColor */, const WPXVerticalAlignment /* cellVerticalAlignment */, 
259
260
                                const bool /* useCellAttributes */, const uint32_t /* cellAttributes */)
260
261
{
261
 
        if (!isUndoOn())
 
262
        if (!isUndoOn() && m_currentTable)
262
263
        {
263
264
                m_currentPageHasContent = true;
264
265
                m_currentTable->insertCell(colSpan, rowSpan, borderBits);