tdf#155210 FILESAVE ODT Default chart row labels disappear from Writer chart

revert
    commit 6500106dff
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Tue Apr 19 13:48:55 2022 +0200
    tdf#148635 no need to init ChartDataWrapper more than once

Change-Id: I28f078731bd8bfedbde63d0bb2e5fe40f0a4ff46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151583
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2023-05-09 15:28:58 +02:00
parent 333f91b389
commit 40f5a5be9f

View file

@ -587,14 +587,11 @@ void ChartDataWrapper::switchToInternalDataProvider()
rtl::Reference< ChartModel > xChartDoc( m_spChart2ModelContact->getDocumentModel() );
if( xChartDoc.is() )
xChartDoc->createInternalDataProvider( true /*bCloneExistingData*/ );
m_xDataAccess.clear();
initDataAccess();
}
void ChartDataWrapper::initDataAccess()
{
if (m_xDataAccess)
return;
rtl::Reference< ChartModel > xChartDoc( m_spChart2ModelContact->getDocumentModel() );
if( !xChartDoc.is() )
return;