diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-20 15:54:22 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-02-25 22:33:40 +0100 |
commit | a7da633f6468c0389a5361fcf93acb23f5952f20 (patch) | |
tree | c9c587a712500af7d695ae6f5202f425a4628d45 /svtools | |
parent | f6f3c737840cbe4771675942307403513a170b84 (diff) |
Resolves: tdf#153763 first/last buttons in tabbar not responding
Change-Id: Id6e70eca7c2d523643d9e38e8c7402879464bf5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147291
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 3e4e2d94cedb..a9579dfb94f8 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -881,13 +881,16 @@ void TabBar::ImplShowPage( sal_uInt16 nPos ) IMPL_LINK( TabBar, ImplClickHdl, weld::Button&, rBtn, void ) { - if ((GetPointerState().mnState & (MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT)) == 0) + if (&rBtn != mpImpl->mxButtonBox->m_xFirstButton.get() && &rBtn != mpImpl->mxButtonBox->m_xLastButton.get()) { - // like tdf#149482 if we didn't see a mouse up, but find that the mouse is no - // longer pressed at this point, then bail - mpImpl->mxButtonBox->m_xPrevRepeater->Stop(); - mpImpl->mxButtonBox->m_xNextRepeater->Stop(); - return; + if ((GetPointerState().mnState & (MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT)) == 0) + { + // like tdf#149482 if we didn't see a mouse up, but find that the mouse is no + // longer pressed at this point, then bail + mpImpl->mxButtonBox->m_xPrevRepeater->Stop(); + mpImpl->mxButtonBox->m_xNextRepeater->Stop(); + return; + } } EndEditMode(); |