diff options
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index d5928bf88fa7..93ebb2810127 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -173,17 +173,10 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportRTF(const OUString& rURL xDocSh->DoInitNew(); SwDoc* pD = static_cast<SwDocShell*>((&xDocSh))->GetDoc(); - SwNodeIndex aIdx( - *pD->GetNodes().GetEndOfContent().StartOfSectionNode(), 1); - if (!aIdx.GetNode().IsTextNode()) - { - pD->GetNodes().GoNext(&aIdx); - } - SwPaM aPaM(aIdx); - aPaM.GetPoint()->nContent.Assign(aIdx.GetNode().GetContentNode(), 0); bool bRet = false; try { + SwPaM aPaM(pD->GetNodes().GetEndOfContent()); bRet = pReader->Read(*pD, OUString(), aPaM, OUString()) == 0; } catch (std::exception const&) |