summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-12-06 22:28:05 +0100
committerMichael Stahl <mstahl@redhat.com>2017-12-13 17:14:58 +0100
commit0999ac11796d2f2c7439df8c5f65d73119716a7d (patch)
treec4dd6b7fc034e59d580ba07c6404a3f02dcb8f86
parent45bbb07680b3d81aaf66ef2d11c95d4c48ab23de (diff)
ofz#4518 sw: why do we need to set IgnoreDeleteRedlines
This mysterious IgnoreDeleteRedlines flag was set in this particular case of a new DELETE redline inside or equal to an existing INSERT redline since initial import. Why it's needed is documented nowhere. If it is needed, then i'm assuming it's only needed to prevent deleting redlines that are actually in the pNewRedl range; it makes no sense to prevent deletion of redlines inside a footnote when that footnote is deleted, because there is no valid position left for such redlines. The problem here is that in the range that is deleted there is a footnote and there is another redline inside the footnote text and that has its positions corrected rather ridiculously by DelBookmarks() because DeleteRedline() ignored it due to the flag. Remove the call to MaybeNotifyRedlineModification(), to fix a SwTiledRenderingTest::testRedlineUpdateCallback failure, assuming that it is only called to compensate for the flag being set, seeing as this is the only such call in AppendRedline. Change-Id: I0f266213b8525f7bee06ee0d56290f4524bf0d85 Reviewed-on: https://gerrit.libreoffice.org/46016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/source/core/doc/DocumentRedlineManager.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx
index 5fc5ada08205..6aad179ab11e 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -1224,8 +1224,6 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall
case SwComparePosition::Inside:
if( bCallDelete )
{
- meRedlineFlags |= RedlineFlags::IgnoreDeleteRedlines;
-
// DeleteAndJoin does not yield the
// desired result if there is no paragraph to
// join with, i.e. at the end of the document.
@@ -1247,8 +1245,6 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall
}
delete pNewRedl;
pNewRedl = nullptr;
- if (eCmpPos == SwComparePosition::Inside)
- MaybeNotifyRedlineModification(pRedl, &m_rDoc);
break;
case SwComparePosition::Outside: