diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-07-21 23:01:37 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-07-21 23:26:19 +0200 |
commit | 62f4151683cc6bde8db61820aa581ad9073b0841 (patch) | |
tree | 47a9cbae610d6653dc3021a07a19e78163008d4c /sw | |
parent | 850795942b3e168cab8ce88b4f2b421945ff29ca (diff) |
sw: it looks like MoveRange() is never called with
... Undo enabled; let's try if somebody finds a way and remove this
later if not.
Change-Id: I9bad32342b129743ecfecb26901857cc4c79a89d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/DocumentContentOperationsManager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 7df812d1cdd5..1d56dc7bd004 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -1666,8 +1666,7 @@ DocumentContentOperationsManager::CopyRange( SwPaM& rPam, SwPosition& rPos, cons // Special case for handling an area with several nodes, // or a single node that is not a TextNode OSL_ENSURE( &m_rDoc == pDoc, " invalid copy branch!" ); - OSL_FAIL("mst: i thought this could be dead code;" - "please tell me what you did to get here!"); + assert(!"mst: this is assumed to be dead code"); pDoc->getIDocumentRedlineAccess().SetRedlineFlags_intern(eOld | RedlineFlags::Ignore); // Then copy the area to the underlying document area @@ -2084,6 +2083,8 @@ bool DocumentContentOperationsManager::MoveRange( SwPaM& rPaM, SwPosition& rPos, pTNd = aSavePam.GetNode().GetTextNode(); if (m_rDoc.GetIDocumentUndoRedo().DoesUndo()) { + assert(!"mst: this is assumed to be dead code"); + // correct the SavePam's Content first if( bNullContent ) { |