[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Sep 12 16:46:39 UTC 2018
sw/source/core/doc/docredln.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 032eb5399be3fbfdd6bfffc93bd55ddd63909701
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Sep 12 14:59:20 2018 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Sep 12 18:46:15 2018 +0200
lok: Avoid crash when inserting a table in a redline.
Steps to reproduce:
* turn on changetracking
* write few characters
* insert table
* move the cursor behind the table and type
* crash
Change-Id: Icd7b64d2fe594c2b87c9d3d7fa48a957755cbc3b
Reviewed-on: https://gerrit.libreoffice.org/60390
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
(cherry picked from commit 43197a3097d2939c30fd9f242ae52b03bf29f240)
Reviewed-on: https://gerrit.libreoffice.org/60401
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 39dbe9c78de5..e023f77f11ac 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -406,7 +406,9 @@ void SwRedlineTable::LOKRedlineNotification(RedlineNotification nType, SwRangeRe
{
for(SwNodeIndex nIdx = pStartPos->nNode; nIdx <= pEndPos->nNode; ++nIdx)
{
- pSh->InvalidateWindows( nIdx.GetNode().GetContentNode()->FindLayoutRect() );
+ SwContentNode* pContentNode = nIdx.GetNode().GetContentNode();
+ if (pContentNode)
+ pSh->InvalidateWindows(pContentNode->FindLayoutRect());
}
}
}
More information about the Libreoffice-commits
mailing list