diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-07-16 14:16:41 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-16 14:18:36 +0100 |
commit | d2b711ecb47e0a0701a1a72896a3148417820a84 (patch) | |
tree | 17e6b78b087a40279c0c89cdcad3b14e1a0ff5bc /sdext | |
parent | Resolves: fdo#42454 'imported' gallery format doesn't appear to exist (diff) | |
download | core-d2b711ecb47e0a0701a1a72896a3148417820a84.tar.gz core-d2b711ecb47e0a0701a1a72896a3148417820a84.zip |
fdo#521512 - fix presenter console display switching
The new, clearer names for external displays need to be in-sync.
Change-Id: Id78d359b08f956579e9226d00515cd959d81a17f
Diffstat (limited to 'sdext')
-rw-r--r--[-rwxr-xr-x] | sdext/source/presenter/PresenterScreen.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index 44bb0230646c..669815c17d71 100755..100644 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -440,10 +440,10 @@ void PresenterScreen::SwitchMonitors() return; // Adapt that display number to be the 'default' setting of 0 if it matches - sal_Int32 nDefaultDisplay = 0; + sal_Int32 nExternalDisplay = 0; Reference<beans::XPropertySet> xDisplayProperties = GetDisplayAccess(); - xDisplayProperties->getPropertyValue(A2S("DefaultDisplay")) >>= nDefaultDisplay; - if (nNewScreen == nDefaultDisplay) + xDisplayProperties->getPropertyValue(A2S("ExternalDisplay")) >>= nExternalDisplay; + if (nNewScreen == nExternalDisplay) nNewScreen = 0; // screen zero is best == the primary display else nNewScreen++; // otherwise we store screens offset by one. |