Kaydet (Commit) b7f2129c authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann Kaydeden (comit) Caolán McNamara

Resolves: #i120023# RTF export certain special copy-and-paste scenarios

(cherry picked from commit d70e1e8e)

Conflicts:
	sw/source/filter/ww8/rtfexport.cxx

Change-Id: I845f3f2bebe411969483a53c45ef9413f7f1b903
üst 4f3287c8
......@@ -391,8 +391,21 @@ void RtfExport::WriteStyles()
void RtfExport::WriteMainText()
{
SAL_INFO("sw.rtf", OSL_THIS_FUNC << " start");
pCurPam->GetPoint()->nNode = pDoc->GetNodes().GetEndOfContent().StartOfSectionNode()->GetIndex();
SwTableNode* pTableNode = pCurPam->GetNode()->FindTableNode();
if ( m_pWriter && m_pWriter->bWriteOnlyFirstTable
&& pTableNode != 0 )
{
pCurPam->GetPoint()->nNode = *pTableNode;
pCurPam->GetMark()->nNode = *(pTableNode->EndOfSectionNode());
}
else
{
pCurPam->GetPoint()->nNode = pDoc->GetNodes().GetEndOfContent().StartOfSectionNode()->GetIndex();
}
WriteText();
SAL_INFO("sw.rtf", OSL_THIS_FUNC << " end");
}
......
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