summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-10-06 22:11:30 +0200
committerMarco Cecchetti <marco.cecchetti@collabora.com>2020-03-06 10:38:10 +0100
commitfa74c7f7613792ff191a6d4597274078dadbe8d8 (patch)
treed1e416926cee661f3d30301cae4fe678e042f47f /sw
parent3bd487c578f780cb41dd5efa128248edf1a10157 (diff)
lok: change-annotations: fix not unique id and multiline changes
When a redline was splitted we ended up with 2 redlines with the same id (note that this id is used only by lok clients). When a redline is a multiline, the generated rectangles was wrong. Change-Id: Iaa7599ab16f4c8939606b1da0dcddb4aac6e983f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/82010 Tested-by: Jenkins Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docredln.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index de78e2a35000..ebdc7ee3c5ba 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -369,8 +369,8 @@ void SwRedlineTable::LOKRedlineNotification(RedlineNotification nType, SwRangeRe
{
SwShellCursor aCursor(pView->GetWrtShell(), *pStartPos);
aCursor.SetMark();
- aCursor.GetMark()->nNode = *pContentNd;
- aCursor.GetMark()->nContent.Assign(pContentNd, pEndPos->nContent.GetIndex());
+ aCursor.GetMark()->nNode = pEndPos->nNode;
+ aCursor.GetMark()->nContent = pEndPos->nContent;
aCursor.FillRects();
@@ -1008,7 +1008,7 @@ SwRangeRedline::SwRangeRedline( const SwRangeRedline& rCpy )
: SwPaM( *rCpy.GetMark(), *rCpy.GetPoint() ),
m_pRedlineData( new SwRedlineData( *rCpy.m_pRedlineData )),
m_pContentSect( nullptr ),
- m_nId( rCpy.m_nId )
+ m_nId( m_nLastId++ )
{
m_bDelLastPara = false;
m_bIsVisible = true;