summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-07-15 10:58:51 +0200
committerAndras Timar <andras.timar@collabora.com>2014-07-22 11:43:46 +0200
commitb08af1d20ca6600da6b26b7992d9fc178f908c5b (patch)
tree8e0fa5f67fae506f657de9730c637da73ffa6b08 /oox
parent771c25eddef27ee5e964f84772621cba05ac6127 (diff)
bnc#887225: OOXML import: Correctly apply table style for lastRow.
nMaxColumn and nMaxRow are indexes, so use size() - 1. Change-Id: I20055e55cf2464710fe553fb8067bad13a339084 (cherry picked from commit 47645734c350f244b4a5642a709132ca1b7dc75d) Reviewed-on: https://gerrit.libreoffice.org/10329 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/table/tableproperties.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx
index 74b0b9111d31..43e4b1fdb55c 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 );
}
}
}