summaryrefslogtreecommitdiff
path: root/sw/source/core/undo/unins.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/undo/unins.cxx')
-rw-r--r--sw/source/core/undo/unins.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/sw/source/core/undo/unins.cxx b/sw/source/core/undo/unins.cxx
index f71d3f592493..b0b9b4a0d4e9 100644
--- a/sw/source/core/undo/unins.cxx
+++ b/sw/source/core/undo/unins.cxx
@@ -25,7 +25,6 @@
#include <sot/storage.hxx>
#include <editeng/keepitem.hxx>
#include <svx/svdobj.hxx>
-#include <xmloff/odffields.hxx>
#include <docsh.hxx>
#include <fmtcntnt.hxx>
@@ -264,26 +263,6 @@ void SwUndoInsert::UndoImpl(::sw::UndoRedoContext & rContext)
RemoveIdxFromRange( aPaM, sal_False );
pTxt = new OUString( pTxtNode->GetTxt().copy(nCntnt-nLen, nLen) );
pTxtNode->EraseText( aPaM.GetPoint()->nContent, nLen );
-
- // Undo deletes fieldmarks in two step: first the end then the start position.
- // Once the start position is deleted, make sure the fieldmark itself is deleted as well.
- if (nLen == 1)
- {
- IDocumentMarkAccess* const pMarkAccess = pTmpDoc->getIDocumentMarkAccess();
- for ( IDocumentMarkAccess::const_iterator_t i = pMarkAccess->getMarksBegin(); i != pMarkAccess->getMarksEnd(); ++i)
- {
- sw::mark::IMark* pMark = i->get();
- if (pMark->GetMarkStart() == *aPaM.GetPoint() && pMark->GetMarkStart().nContent == aPaM.GetPoint()->nContent)
- {
- sw::mark::IFieldmark* pFieldmark = dynamic_cast<sw::mark::IFieldmark*>(pMark);
- if (pFieldmark && pFieldmark->GetFieldname() == ODF_COMMENTRANGE)
- {
- pTmpDoc->getIDocumentMarkAccess()->deleteMark(pMark);
- break;
- }
- }
- }
- }
}
else // otherwise Graphics/OLE/Text/...
{