diff --git a/HtmlFile2/htmlfile2.cpp b/HtmlFile2/htmlfile2.cpp index 6534a46072..5b8930fdaf 100644 --- a/HtmlFile2/htmlfile2.cpp +++ b/HtmlFile2/htmlfile2.cpp @@ -1196,7 +1196,7 @@ class CTable if (NULL == pCell) continue; - pCell->SetColspan(unMaxIndex , MAXCOLUMNSINTABLE); + pCell->SetColspan(unMaxIndex, MAXCOLUMNSINTABLE); continue; } @@ -1208,9 +1208,9 @@ class CTable if (NULL == pCell) continue; - if (1 < pCell->GetColspan() && unIndex + pCell->GetColspan() > m_arMinColspan[unIndex]) + if (1 < pCell->GetColspan() && pCell->GetColspan() > m_arMinColspan[unIndex]) { - pCell->SetColspan(m_arMinColspan[unIndex] - unIndex, MAXCOLUMNSINTABLE); + pCell->SetColspan(m_arMinColspan[unIndex], MAXCOLUMNSINTABLE); continue; } @@ -1746,6 +1746,15 @@ class CHtmlFile2_Private oRelsWriter.CloseFile(); } + for (const std::pair& oFootnote : m_mFootnotes) + { + m_oNoteXml.WriteString(L""); + m_oNoteXml.WriteEncodeXmlString(oFootnote.first); + m_oNoteXml.WriteString(L""); + } + m_oNoteXmlRels.WriteString(L""); if (oRelsWriter.CreateFileW(m_sDst + L"/word/_rels/footnotes.xml.rels")) {