summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorDaniel Lohmann <LibreOfficeContribution@dldld.de>2022-11-27 11:45:48 +0100
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-11-28 08:46:52 +0100
commit176f77607ed1001efca402d1807e12b93d914847 (patch)
treeca0134165ace0c8822bcb10403dd9d4e70fcf2fb /slideshow
parent1fd42472e2b1a2169d56e62ef11aa7ee1f7815e7 (diff)
Do not draw pointer on paused mode screen
If the pointer is drawn on the paused mode screen, around the pointer the slide will be visible. Everywhere where the pointer was will the slide is visible. Preventing to draw the pointer in the paused mode will fix this issue. Change-Id: Ica8fedca5710adfc79ed78a30485bd755e3b3b31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143340 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 1cbc167a4c4d..264a4dee8217 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -1750,7 +1750,9 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
if (!(rProperty.Value >>= visible))
return false;
- mpPointerSymbol->setVisible(visible);
+ if (!mbShowPaused)
+ mpPointerSymbol->setVisible(visible);
+
return true;
}
@@ -1760,7 +1762,9 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
if (! (rProperty.Value >>= pos))
return false;
- mpPointerSymbol->viewsChanged(pos);
+ if (!mbShowPaused)
+ mpPointerSymbol->viewsChanged(pos);
+
return true;
}