diff options
Diffstat (limited to 'sd/source/console/PresenterScreen.cxx')
-rw-r--r-- | sd/source/console/PresenterScreen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/console/PresenterScreen.cxx b/sd/source/console/PresenterScreen.cxx index dcf0cb93a564..cd6c20d38cc5 100644 --- a/sd/source/console/PresenterScreen.cxx +++ b/sd/source/console/PresenterScreen.cxx @@ -411,8 +411,8 @@ void PresenterScreen::SwitchMonitors() nNewScreen++; // otherwise we store screens offset by one. // Set the new presentation display - if (auto xProperties = xPresentation.query<beans::XPropertySet>()) - xProperties->setPropertyValue("Display", Any(nNewScreen)); + Reference<beans::XPropertySet> xProperties (xPresentation, UNO_QUERY_THROW); + xProperties->setPropertyValue("Display", Any(nNewScreen)); } catch (const uno::Exception &) { } } |