diff options
author | Katarina Machalkova <kmachalkova@suse.cz> | 2011-06-27 13:35:01 +0200 |
---|---|---|
committer | Katarina Machalkova <kmachalkova@suse.cz> | 2011-06-30 14:45:58 +0200 |
commit | 992cfbaffeff55241b4fa0b086dffb14930afb9e (patch) | |
tree | 12e65bd150c331404096cb9c42e815404fae4be0 /sc/source | |
parent | ab45e9dfc959f953fc126c7dd264b33ceba84876 (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.cxx | 3 |
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( |