summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpoutputgeometry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/dpoutputgeometry.cxx')
-rw-r--r--sc/source/core/data/dpoutputgeometry.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/dpoutputgeometry.cxx b/sc/source/core/data/dpoutputgeometry.cxx
index 09765690f..999ab2866 100644
--- a/sc/source/core/data/dpoutputgeometry.cxx
+++ b/sc/source/core/data/dpoutputgeometry.cxx
@@ -42,12 +42,13 @@
using ::std::vector;
-ScDPOutputGeometry::ScDPOutputGeometry(const ScRange& rOutRange, bool bShowFilter) :
+ScDPOutputGeometry::ScDPOutputGeometry(const ScRange& rOutRange, bool bShowFilter, ImportType eImportType) :
maOutRange(rOutRange),
mnRowFields(0),
mnColumnFields(0),
mnPageFields(0),
mnDataFields(0),
+ meImportType(eImportType),
mbShowFilter(bShowFilter)
{
}
@@ -172,7 +173,7 @@ ScDPOutputGeometry::FieldType ScDPOutputGeometry::getFieldButtonType(const ScAdd
{
// We will ignore the table position for now.
- bool bExtraTitleRow = (mnColumnFields == 0);
+ bool bExtraTitleRow = (mnColumnFields == 0 && meImportType == ScDPOutputGeometry::XLS);
bool bDataLayout = mnDataFields > 1;
SCROW nCurRow = maOutRange.aStart.Row();