https://bugs.documentfoundation.org/show_bug.cgi?id=129190

Regina Henschel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Regina Henschel <[email protected]> ---
The problem becomes visible in [1]
278                              if (bHasDataPilotSource)
279                              {
280                                 
Reference<chart2::data::XPivotTableDataProvider>
xPivotTableDataProvider(xProvider, uno::UNO_QUERY);
281                                 
xPivotTableDataProvider->setPivotTableName(sDataPilotSource);
282                                 
xDataReceiver->attachDataProvider(xProvider);
283                                  bHasOwnData =
!xPivotTableDataProvider->hasPivotTable();

When setPivotTableName is called in #281 during import of a flat ods file, the
pivot table was not yet read. Thus pDPObject in [2] does not exist and
m_sPivotTableName is unchanged, which means it is empty.

And when later in #283 hasPivotTable() is called, it returns false because
m_sPivotTableName is empty [3].

And that means, bHasOwnData becomes true.
Thus not the pivot table but the internal table is used.

Unfortunately I have no solution for this problem.

[1]
https://opengrok.libreoffice.org/xref/core/xmloff/source/chart/SchXMLChartContext.cxx?r=1180b347#278
[2]
https://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/PivotTableDataProvider.cxx?r=134afb33#755
[3]
https://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/PivotTableDataProvider.cxx?r=134afb33#763

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to