summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-07-13 23:58:49 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-07-14 05:20:41 +0200
commitaff09d7cb464af3223ee43cac0483ae3bf22fddd (patch)
tree446fe44d0f727412eca2d335f85e85748143fc51 /sd/source/ui/annotations
parent45d8c51610ce8e8989961135249af0b89544c094 (diff)
tdf#161994 annot: trigger selection of the current annotation
Delete annotation isn't active if no annotation is selected, but we do not report a new selection anymore, so fix this. Change-Id: Idb455d0c0d42412c55de4a7ca037342b58da548b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170429 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 000ef254b23e..e547521bdb49 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -1288,6 +1288,11 @@ void AnnotationManager::GetAnnotationState(SfxItemSet& rItemSet)
mxImpl->GetAnnotationState(rItemSet);
}
+void AnnotationManager::SelectAnnotation(rtl::Reference<sdr::annotation::Annotation> const& xAnnotation)
+{
+ mxImpl->SelectAnnotation(xAnnotation);
}
+} // end sd
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */