Kaydet (Commit) 992cfbaf authored tarafından Katarina Machalkova's avatar Katarina Machalkova

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)
üst ab45e9df
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment