summaryrefslogtreecommitdiffstats
path: root/slideshow/source/engine/slideoverlaybutton.cxx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 09:27:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 09:27:54 +0000
commitadb203bc05e3e36173cbd46b9951f79821a81799 (patch)
tree6e6739df9b3f0a567330a0dd7ee0e03ae70876a3 /slideshow/source/engine/slideoverlaybutton.cxx
parentAdding debian version 4:24.2.0-3. (diff)
downloadlibreoffice-adb203bc05e3e36173cbd46b9951f79821a81799.tar.xz
libreoffice-adb203bc05e3e36173cbd46b9951f79821a81799.zip
Merging upstream version 4:24.2.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'slideshow/source/engine/slideoverlaybutton.cxx')
-rw-r--r--slideshow/source/engine/slideoverlaybutton.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/slideshow/source/engine/slideoverlaybutton.cxx b/slideshow/source/engine/slideoverlaybutton.cxx
index 40ade676b3..987cd11dfb 100644
--- a/slideshow/source/engine/slideoverlaybutton.cxx
+++ b/slideshow/source/engine/slideoverlaybutton.cxx
@@ -170,7 +170,15 @@ bool SlideOverlayButton::handleMouseReleased(const css::awt::MouseEvent& e)
&& clickPnt.getY() > btnPnt.getY()
&& clickPnt.getY() < btnPnt.getY() + mxIconBitmap->getSize().Height)
{
- mClickHandler(clickPnt);
+ if (mnIgnoreClicksCnt == 0)
+ {
+ mnIgnoreClicksCnt = e.ClickCount - 1;
+ mClickHandler(clickPnt);
+ }
+ else
+ {
+ mnIgnoreClicksCnt--;
+ }
return true;
}
return false;