summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterScreen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterScreen.cxx')
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx
index 847919e720bc..9e73456ff1bd 100644
--- a/sdext/source/presenter/PresenterScreen.cxx
+++ b/sdext/source/presenter/PresenterScreen.cxx
@@ -432,14 +432,13 @@ sal_Int32 PresenterScreen::GetPresenterScreenNumber (
sal_Int32 nScreenCount (1);
try
{
- Reference<beans::XPropertySet> xProperties (rxPresentation, UNO_QUERY);
- if ( ! xProperties.is())
+ if ( ! rxPresentation.is())
return -1;
// Determine the screen on which the full screen presentation is being
// displayed.
sal_Int32 nDisplayNumber (-1);
- if ( ! (xProperties->getPropertyValue("Display") >>= nDisplayNumber))
+ if ( ! (rxPresentation->getPropertyValue("Display") >>= nDisplayNumber))
return -1;
if (nDisplayNumber == -1)
{