diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-05-17 15:08:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-05-17 19:47:36 +0200 |
commit | dd4adcd54bdff0b114560589872216a450fa6def (patch) | |
tree | 8059cce50d33c4cfbbdb89081c31a7e676615456 /sc/source/ui/undo | |
parent | lok: Update state of undo after a comment modification. (diff) | |
download | core-dd4adcd54bdff0b114560589872216a450fa6def.tar.gz core-dd4adcd54bdff0b114560589872216a450fa6def.zip |
sc lok: Don't crash on comment undo.
Change-Id: I3b8686e2d52359de2d99413e63d4a424ba1439d1
Reviewed-on: https://gerrit.libreoffice.org/37710
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 0abd6920867c..0050bb6eeae3 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -805,7 +805,7 @@ void ScUndoReplaceNote::DoRemoveNote( const ScNoteData& rNoteData ) caption object from the drawing layer while deleting pNote (removing the caption is done by a drawing undo action). */ pNote->ForgetCaption(); - ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Remove, &rDoc, maPos, nullptr); + ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Remove, &rDoc, maPos, pNote); delete pNote; } } |