sd/source/ui/annotations/annotationmanager.cxx | 12 +++++++++--- sd/source/ui/annotations/annotationmanagerimpl.hxx | 1 + 2 files changed, 10 insertions(+), 3 deletions(-)
New commits: commit ce7f482135a9f5dbcc1d662201499d1d7928e1b1 Author: Bayram Çiçek <[email protected]> AuthorDate: Wed Nov 5 00:57:18 2025 +0300 Commit: Bayram Çiçek <[email protected]> CommitDate: Thu Nov 6 08:00:57 2025 +0100 impress: fix typing issue after comment save - after saving a comment, editing was not possible in a textbox until the comment was deleted. - textboxes are now editable. Signed-off-by: Bayram Çiçek <[email protected]> Change-Id: I989a18f34b0fb40c5ca46b1d9556298a89bc745e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193436 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index cfcfa52ef971..1e4a157a4582 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -312,6 +312,12 @@ void AnnotationManagerImpl::ShowAnnotations( bool bShow ) } } +bool AnnotationManagerImpl::isVisibleAnnotations() +{ + return (!comphelper::LibreOfficeKit::isActive() + || comphelper::LibreOfficeKit::isTiledAnnotations()); +} + void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest const & rReq ) { switch( rReq.GetSlot() ) @@ -342,7 +348,7 @@ void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest const & rReq ) void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest const & rReq) { - if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations()) + if (isVisibleAnnotations()) ShowAnnotations(true); const SfxItemSet* pArgs = rReq.GetArgs(); @@ -563,7 +569,7 @@ void AnnotationManagerImpl::InsertAnnotation(const OUString& rText) LOKCommentNotifyAll(sdr::annotation::CommentNotificationType::Add, *xAnnotation); UpdateTags(true); - SelectAnnotation(xAnnotation, true); + SelectAnnotation(xAnnotation, isVisibleAnnotations()); } void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq ) @@ -668,7 +674,7 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq ) mpDoc->EndUndo(); UpdateTags(true); - SelectAnnotation( xAnnotation, true ); + SelectAnnotation( xAnnotation, isVisibleAnnotations() ); } void AnnotationManagerImpl::DeleteAnnotation(rtl::Reference<sdr::annotation::Annotation> const& xAnnotation ) diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx index 634d2fe3c85e..76cfd85631d1 100644 --- a/sd/source/ui/annotations/annotationmanagerimpl.hxx +++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx @@ -104,6 +104,7 @@ public: SdPage* GetCurrentPage(); void ShowAnnotations(bool bShow); + static bool isVisibleAnnotations(); private: ViewShellBase& mrBase;
