diff options
author | Jim Raykowski <raykowj@gmail.com> | 2023-08-31 10:06:21 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2023-09-01 00:37:22 +0200 |
commit | d88779fc86385dde1215fd28b78a69eacc6b4f97 (patch) | |
tree | 8df72459ec12b800f3d90861f13115f54d69ea6b /sfx2 | |
parent | 140079362502408c75ceee67e86d779f61c0ac1b (diff) |
tdf#156538 follow up: Use better tooltip activation rectangle
This patch corrects the tooltip only being shown when the mouse pointer
is in the top third of the window when using gtk3.
Change-Id: I9d705c064bc4654ed660842215ffd59edc14891b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156358
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/charwin.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx index 999aa2e4a95d..475583c890b0 100644 --- a/sfx2/source/control/charwin.cxx +++ b/sfx2/source/control/charwin.cxx @@ -102,10 +102,9 @@ OUString SvxCharView::GetCharInfoText() OUString SvxCharView::RequestHelp(tools::Rectangle& rHelpRect) { - OUString sCharInfoText(GetCharInfoText()); - // Gtk3 requires a help rectangle be supplied for the tooltip to display, X11 does not. - mxVirDev->GetTextBoundRect(rHelpRect, sCharInfoText); - return sCharInfoText; + // Gtk3 requires a rectangle be specified for the tooltip to display, X11 does not. + rHelpRect = tools::Rectangle(Point(), GetOutputSizePixel()); + return GetCharInfoText(); } bool SvxCharView::MouseButtonDown(const MouseEvent& rMEvt) |