diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-04 19:41:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-05 22:26:57 +0200 |
commit | b9519e984adc16d1c66aa7a5c0cdf77b0d0ac5e9 (patch) | |
tree | 79d19724557d8e4013370a6644407671b6ceeb67 /sd | |
parent | ad69113dbe01f10aed05a261870c98c784e7b962 (diff) |
cid#1608381 Data race condition
Change-Id: I85d110e0465429a52a8286747ae9da3e271255c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174537
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slideshow/slideshowviewimpl.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowviewimpl.hxx | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx index 38dba39bc801..9b3ae107b9fb 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.cxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx @@ -552,6 +552,12 @@ void SAL_CALL SlideShowView::mouseReleased( const awt::MouseEvent& e ) } } +void SlideShowView::ignoreNextMouseReleased() +{ + std::unique_lock aGuard( m_aMutex ); + mbMousePressedEaten = true; +} + void SAL_CALL SlideShowView::mouseEntered( const awt::MouseEvent& e ) { std::unique_lock aGuard( m_aMutex ); diff --git a/sd/source/ui/slideshow/slideshowviewimpl.hxx b/sd/source/ui/slideshow/slideshowviewimpl.hxx index 3a5018be41b7..91b825906c46 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.hxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.hxx @@ -107,7 +107,7 @@ public: SlideshowImpl* pSlideShow, bool bFullScreen ); - void ignoreNextMouseReleased() { mbMousePressedEaten = true; } + void ignoreNextMouseReleased(); /// Dispose all internal references virtual void disposing(std::unique_lock<std::mutex>&) override; |