diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 13:38:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 15:11:36 +0200 |
commit | 0307018e94f64cd0bf4426f943109e1d7593ec27 (patch) | |
tree | 61debe942d93f5406979d5faa5b32cd9e7f211ca /editeng | |
parent | 7ac26ea039ea0c355b80232e30c29a07e2bb027d (diff) |
tdf#149389 Crash when closing document in dead key mode while adding comment
blind fix
Change-Id: I79405cf36ce664024626ca7f348885a3dc91a593
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135304
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index f04623a03292..c731932c51ec 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -380,7 +380,8 @@ bool ImpEditEngine::Command( const CommandEvent& rCEvt, EditView* pView ) } ParaPortion* pPortion = FindParaPortion( mpIMEInfos->aPos.GetNode() ); - pPortion->MarkSelectionInvalid( mpIMEInfos->aPos.GetIndex() ); + if (pPortion) + pPortion->MarkSelectionInvalid( mpIMEInfos->aPos.GetIndex() ); bool bWasCursorOverwrite = mpIMEInfos->bWasCursorOverwrite; |