diff options
author | Eike Rathke <erack@redhat.com> | 2015-04-23 19:06:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-04-23 19:10:21 +0200 |
commit | b2ead407c70f71974a1eac79df09072ff8bd0cc2 (patch) | |
tree | 49bf34c691dc77a2d5725fd4bdcefec61d1af501 /sc | |
parent | 1d6a35b2a3c3f8ba487dd8ab994f70c969dc8f74 (diff) |
set DatabaseRange TotalsRow if Table TotalsRows
Change-Id: I740aa0dc8c49eda456df1a5dee264edc6bb3e403
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/tablebuffer.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/filter/oox/tablebuffer.cxx b/sc/source/filter/oox/tablebuffer.cxx index 1e111b5cd130..d70c8c532a83 100644 --- a/sc/source/filter/oox/tablebuffer.cxx +++ b/sc/source/filter/oox/tablebuffer.cxx @@ -91,8 +91,16 @@ void Table::finalizeImport() createDatabaseRangeObject( maDBRangeName, maModel.maRange ), UNO_SET_THROW); maDestRange = xDatabaseRange->getDataArea(); - // get formula token index of the database range PropertySet aPropSet( xDatabaseRange ); + + if (maModel.mnTotalsRows > 0) + { + SAL_WARN_IF( maModel.mnTotalsRows > 1, "sc.filter", + "Table TotalsRows > 1 not supported: " << maModel.mnTotalsRows); + aPropSet.setProperty( PROP_TotalsRow, true); + } + + // get formula token index of the database range if( !aPropSet.getProperty( mnTokenIndex, PROP_TokenIndex ) ) mnTokenIndex = -1; } |