diff options
Diffstat (limited to 'sdext/source/presenter/PresenterScreen.cxx')
-rwxr-xr-x[-rw-r--r--] | sdext/source/presenter/PresenterScreen.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index 22a1b2fe623f..d47f0aea4077 100644..100755 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -496,6 +496,13 @@ sal_Int32 PresenterScreen::GetScreenNumber ( sal_Int32 nDisplayNumber (-1); if ( ! (xProperties->getPropertyValue(A2S("Display")) >>= nDisplayNumber)) return -1; + if (nDisplayNumber == -1) + { + // The special value -1 indicates that the slide show + // spans all available displays. That leaves no room for + // the presenter screen. + return -1; + } Reference<XComponentContext> xContext (mxContextWeak); if ( ! xContext.is()) |