diff options
Diffstat (limited to 'include/svx/annotation/ObjectAnnotationData.hxx')
-rw-r--r-- | include/svx/annotation/ObjectAnnotationData.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/svx/annotation/ObjectAnnotationData.hxx b/include/svx/annotation/ObjectAnnotationData.hxx index f7dc220d789d..bedbb1a0da29 100644 --- a/include/svx/annotation/ObjectAnnotationData.hxx +++ b/include/svx/annotation/ObjectAnnotationData.hxx @@ -19,6 +19,8 @@ namespace sdr::annotation class ObjectAnnotationData { public: + ~ObjectAnnotationData() { closePopup(); } + /// The annotation rtl::Reference<sdr::annotation::Annotation> mxAnnotation; @@ -31,6 +33,13 @@ public: if (mpAnnotationPopup) mpAnnotationPopup->openPopup(); } + + /// Close popup for the annotation + void closePopup() + { + if (mpAnnotationPopup) + mpAnnotationPopup->closePopup(); + } }; } |