summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-08-31 15:59:42 +0200
committerMichael Stahl <mstahl@redhat.com>2016-08-31 16:01:19 +0200
commitcea58d4c27621725b068d26f3587491322769f45 (patch)
treec689a135c8210acbc7de27f4dc5ade7476498e82 /slideshow
parent52bac50deb628cb21c88d5dcab032d4980bb8974 (diff)
slideshow: stop whining about PresenterCanvas' lack of XUpdatable
Change-Id: I1e447f5eccb41325d96e9c4cb1598a05e702badc
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 630b18f5be0f..b83a2ea4952a 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -2101,9 +2101,12 @@ sal_Bool SlideShowImpl::update( double & nNextTimeout )
{
uno::Reference< presentation::XSlideShowView > xView( pView->getUnoView(),
uno::UNO_QUERY_THROW );
- uno::Reference< util::XUpdatable > xUpdatable( xView->getCanvas(),
- uno::UNO_QUERY_THROW );
- xUpdatable->update();
+ uno::Reference<util::XUpdatable> const xUpdatable(
+ xView->getCanvas(), uno::UNO_QUERY);
+ if (xUpdatable.is()) // not supported in PresenterCanvas
+ {
+ xUpdatable->update();
+ }
}
catch( uno::RuntimeException& )
{