[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - oox/source
Matúš Kukan
matus.kukan at collabora.com
Thu Jul 17 06:38:42 PDT 2014
oox/source/drawingml/table/tableproperties.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8c148bd93ec2fe1aaccbbc583d93784f392edeb8
Author: Matúš Kukan <matus.kukan at collabora.com>
Date: Tue Jul 15 10:58:51 2014 +0200
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/10331
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx
index e7f5799..db55c67 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 );
}
}
}
More information about the Libreoffice-commits
mailing list