summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/oox/tablebuffer.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-04-23 19:06:11 +0200
committerEike Rathke <erack@redhat.com>2015-04-23 19:10:21 +0200
commitb2ead407c70f71974a1eac79df09072ff8bd0cc2 (patch)
tree49bf34c691dc77a2d5725fd4bdcefec61d1af501 /sc/source/filter/oox/tablebuffer.cxx
parentthis should be sorted and unique, no? (diff)
downloadcore-b2ead407c70f71974a1eac79df09072ff8bd0cc2.tar.gz
core-b2ead407c70f71974a1eac79df09072ff8bd0cc2.zip
set DatabaseRange TotalsRow if Table TotalsRows
Change-Id: I740aa0dc8c49eda456df1a5dee264edc6bb3e403
Diffstat (limited to 'sc/source/filter/oox/tablebuffer.cxx')
-rw-r--r--sc/source/filter/oox/tablebuffer.cxx10
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;
}