Commit 56cefcb1 authored by ElenaSubbotina's avatar ElenaSubbotina

fix bug #34761

parent fb9edc4f
...@@ -5489,9 +5489,15 @@ namespace BinDocxRW ...@@ -5489,9 +5489,15 @@ namespace BinDocxRW
m_oBcw.m_oStream.WriteBYTE(c_oSerPropLenType::Variable); m_oBcw.m_oStream.WriteBYTE(c_oSerPropLenType::Variable);
int nCurPos = m_oBcw.WriteItemWithLengthStart(); int nCurPos = m_oBcw.WriteItemWithLengthStart();
NSCommon::smart_ptr<PPTX::CCommonRels> pOldRels = *m_pOfficeDrawingConverter->m_pBinaryWriter->m_pCommonRels;
OOX::CPath chartPath = pChart->GetReadPath();
m_pOfficeDrawingConverter->SetRelsPath(chartPath.GetPath());
BinXlsxRW::BinaryChartWriter oBinaryChartWriter(m_oBcw.m_oStream, m_pOfficeDrawingConverter); BinXlsxRW::BinaryChartWriter oBinaryChartWriter(m_oBcw.m_oStream, m_pOfficeDrawingConverter);
oBinaryChartWriter.WriteCT_ChartSpace(*pChart); oBinaryChartWriter.WriteCT_ChartSpace(*pChart);
*m_pOfficeDrawingConverter->m_pBinaryWriter->m_pCommonRels = pOldRels;
m_oBcw.WriteItemWithLengthEnd(nCurPos); m_oBcw.WriteItemWithLengthEnd(nCurPos);
} }
......
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