sfx2/source/control/charwin.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit d88779fc86385dde1215fd28b78a69eacc6b4f97 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Thu Aug 31 10:06:21 2023 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Fri Sep 1 00:37:22 2023 +0200 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 <rayk...@gmail.com> 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)