diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-15 10:58:51 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-15 14:29:43 +0200 |
commit | 47645734c350f244b4a5642a709132ca1b7dc75d (patch) | |
tree | 0505890bc85128ff721636b4387d55e7760758fe /oox/source/drawingml/table/tableproperties.cxx | |
parent | ea9331fd4955fe6fad0957ee6240275148353e32 (diff) |
bnc#887225: OOXML import: Correctly apply table style for lastRow.
nMaxColumn and nMaxRow are indexes, so use size() - 1.
Change-Id: I20055e55cf2464710fe553fb8067bad13a339084
Diffstat (limited to 'oox/source/drawingml/table/tableproperties.cxx')
-rw-r--r-- | oox/source/drawingml/table/tableproperties.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx index c7c6fff1a417..80cc6d28e11e 100644 --- a/oox/source/drawingml/table/tableproperties.cxx +++ b/oox/source/drawingml/table/tableproperties.cxx @@ -288,7 +288,7 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa Reference< XCellRange > xCellRange( xTable, UNO_QUERY_THROW ); rTableCell.pushToXCell( rFilterBase, pMasterTextListStyle, xCellRange->getCellByPosition( nColumn, nRow ), *this, rTableStyle, - nColumn, aTableRowIter->getTableCells().size(), nRow, mvTableRows.size() ); + nColumn, aTableRowIter->getTableCells().size()-1, nRow, mvTableRows.size()-1 ); } } } |