diff options
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index 622d54755641..5060c53ff205 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -1445,9 +1445,8 @@ bool ScDBDocFunc::CreatePivotTable(const ScDPObject& rDPObj, bool bRecord, bool // Synchronize groups between linked tables { - bool bRefFound = false; const ScDPDimensionSaveData* pGroups = nullptr; - bRefFound = rDoc.GetDPCollection()->GetReferenceGroups(rDestObj, &pGroups); + bool bRefFound = rDoc.GetDPCollection()->GetReferenceGroups(rDestObj, &pGroups); if (bRefFound) { ScDPSaveData* pSaveData = rDestObj.GetSaveData(); |