Resolves: #i120023# RTF export certain special copy-and-paste scenarios
(cherry picked from commit d70e1e8ea81a942875f91fdef75d3e39fba42eff) Conflicts: sw/source/filter/ww8/rtfexport.cxx Change-Id: I845f3f2bebe411969483a53c45ef9413f7f1b903
This commit is contained in:
committed by
Caolán McNamara
parent
4f3287c8b8
commit
b7f2129c11
@@ -391,8 +391,21 @@ void RtfExport::WriteStyles()
|
|||||||
void RtfExport::WriteMainText()
|
void RtfExport::WriteMainText()
|
||||||
{
|
{
|
||||||
SAL_INFO("sw.rtf", OSL_THIS_FUNC << " start");
|
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();
|
WriteText();
|
||||||
|
|
||||||
SAL_INFO("sw.rtf", OSL_THIS_FUNC << " end");
|
SAL_INFO("sw.rtf", OSL_THIS_FUNC << " end");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user