sd/source/ui/annotations/annotationmanager.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit c57b9282a500741812448a4ad3c68956f6764b4a Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Wed Mar 13 20:23:47 2024 +0530 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Mar 14 09:51:48 2024 +0100 sd:annotation: added missing comment reply undo Change-Id: I63e005aa35faad1ebdaad228a22477cb1dd6de67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164812 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 81d6b3c0176b..734229e36c39 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -553,6 +553,10 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq ) if( !pTextApi ) return; + if (mpDoc->IsUndoEnabled()) + mpDoc->BegUndo(SdResId(STR_ANNOTATION_REPLY)); + + CreateChangeUndo(xAnnotation); ::Outliner aOutliner( GetAnnotationPool(),OutlinerMode::TextObject ); SdDrawDocument::SetCalcFieldValueHdl( &aOutliner ); @@ -610,6 +614,9 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq ) // Tell our LOK clients about this (comment modification) LOKCommentNotifyAll(CommentNotificationType::Modify, xAnnotation); + if( mpDoc->IsUndoEnabled() ) + mpDoc->EndUndo(); + UpdateTags(true); SelectAnnotation( xAnnotation, true ); }