Skip to content

Commit 3b67e4e

Browse files
fix bug #73494
1 parent 670dae5 commit 3b67e4e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

MsBinaryFile/PptFile/PPTXWriter/Converter.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ namespace PPT
619619

620620
WriteSlides();
621621
WriteNotes();
622+
m_pShapeWriter->SetRelsGenerator(NULL);
622623
}
623624

624625
// todo reforming and refactoring!
@@ -1544,6 +1545,8 @@ namespace PPT
15441545

15451546
oRels.StartSlide(nLayout, pSlide->m_lNotesID);
15461547
}
1548+
1549+
m_pShapeWriter->SetRelsGenerator(&oRels);
15471550

15481551
oWriter.WriteString(std::wstring(L"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"));
15491552
oWriter.WriteString(std::wstring(L"<p:sld \
@@ -1637,10 +1640,12 @@ xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\""));
16371640
{
16381641
CStringWriter oWriter;
16391642
CRelsGenerator oRels(&m_oManager);
1640-
1643+
16411644
CSlide* pNotes = m_pDocument->m_arNotes[nIndexNotes];
16421645

16431646
oRels.StartNotes(pNotes->m_lSlideID, m_pDocument->m_pNotesMaster != NULL);
1647+
1648+
m_pShapeWriter->SetRelsGenerator(&oRels);
16441649

16451650
oWriter.WriteString(std::wstring(L"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"));
16461651
oWriter.WriteString(std::wstring(L"<p:notes xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\""));

0 commit comments

Comments
 (0)