summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKatarina Machalkova <kmachalkova@suse.cz>2011-06-27 13:35:01 +0200
committerKatarina Machalkova <kmachalkova@suse.cz>2011-06-30 14:45:58 +0200
commit992cfbaffeff55241b4fa0b086dffb14930afb9e (patch)
tree12e65bd150c331404096cb9c42e815404fae4be0 /sc/source
parentab45e9dfc959f953fc126c7dd264b33ceba84876 (diff)
fdo#38457: 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)
Diffstat (limited to 'sc/source')
-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 c5788111f715..17ab9a827cba 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1876,9 +1876,6 @@ 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(