diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-09-12 23:19:57 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2012-09-14 20:27:01 +0000 |
commit | 8803f997d0fd03a1b0ba06b99bea6b2ad1e2d3c0 (patch) | |
tree | be475d677fdd62fcf42c319db91b0c65a7e3fb98 | |
parent | bacceec11fc1e9d4999308040ae36848c24376d4 (diff) |
fdo#45700: sw ODF export: workaround corrupted table model:
do not export invalid table:number-columns-spanned="0"
(cherry picked from commit c45c64e3de51d9f56c9d9789729b6f7952547a61)
Conflicts:
sw/source/filter/xml/xmltble.cxx
Change-Id: I7e286a9fcb6ed3df7222c83fe73e870e69561649
Reviewed-on: https://gerrit.libreoffice.org/613
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | sw/source/filter/xml/xmltble.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx index f3ee9c746279..42918fc80d6f 100644 --- a/sw/source/filter/xml/xmltble.cxx +++ b/sw/source/filter/xml/xmltble.cxx @@ -980,14 +980,9 @@ void SwXMLExport::ExportTableLine( const SwTableLine& rLine, if ( nCol < nOldCol ) { OSL_FAIL( "table and/or table information seems to be corrupted." ); - if ( nBox == nBoxes - 1 ) - { - nCol = rLines.GetColumns().Count() - 1; - } - else - { - nCol = nOldCol; - } + // NOTE: nOldCol is not necessarily a valid index into + // GetColumns(), but that doesn't matter here + nCol = nOldCol; } sal_uInt16 nColSpan = nCol - nOldCol + 1U; |