summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Machalkova <kmachalkova@suse.cz>2011-06-27 13:35:01 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-28 05:20:00 +0200
commit0292da5929768cb7324821947379aad625ed41e4 (patch)
treec75d5dbf0b921c5187f9297d4fcab1a6235e56f6
parent27677513a21ac7c9b4ce9f9236e0b5722d179f38 (diff)
fdo#38456: Always set column offset to 0
Setting it to anything else moves field indexes off-by-N and causes crash in some cases (the original code has been unused since 2004 at least) Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/data/dpobject.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 472c451ea..93bfebba5 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1860,9 +1860,6 @@ sal_Bool ScDPObject::FillOldParam(ScPivotParam& rParam) const
// ppLabelArr / nLabels is not changed
SCCOL nSrcColOffset = 0;
- if (IsSheetData())
- // source data column offset is only for internal sheet source.
- nSrcColOffset = pSheetDesc->GetSourceRange().aStart.Col();
bool bAddData = ( lcl_GetDataGetOrientation( xSource ) == sheet::DataPilotFieldOrientation_HIDDEN );
lcl_FillOldFields(