summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2022-07-05 13:54:42 +0100
committerMichael Meeks <michael.meeks@collabora.com>2022-07-05 18:04:31 +0200
commit92f531209675e1855798f513fb7698fceddd022b (patch)
tree4ae5ed1488499152ad325574dc288a97a4ef6523 /sd/source
parent9f72592591f1dfbfda79e1aecb161de97f2a1b73 (diff)
fix build with disable-avmedia.
Change-Id: Ia57db9b2bcec4ff73e1332bb5b2197080343baa4 Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136831 Tested-by: Jenkins
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/sdview.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index 9ab22b73bf5b..429a8c408753 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
@@ -143,11 +145,13 @@ View::~View()
// release content of selection clipboard, if we own the content
ClearSelectionClipboard();
+#if HAVE_FEATURE_AVMEDIA
if (mxDropMediaSizeListener)
{
suppress_fun_call_w_exception(mxDropMediaSizeListener->dispose());
mxDropMediaSizeListener.clear();
}
+#endif
maDropErrorIdle.Stop();
maDropInsertFileIdle.Stop();