[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/source
Caolán McNamara
caolanm at redhat.com
Tue Apr 10 08:36:41 UTC 2018
sw/source/ui/index/cnttab.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7d95ef515c604bf67e68fd4824aa0073d8a76d07
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 9 14:16:40 2018 +0100
Related: tdf#77919 GetPosPixel() is relative to parent, not grandparent
so the tooltip rectangle is wrong and doesn't shown under mutter
we could use pCtrl->OutputToScreenPixel(Point(0, 0)) here too
Change-Id: I75a717127ad75a4aac2cb9c22e526419f798ea99
Reviewed-on: https://gerrit.libreoffice.org/52654
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index ac3b7fc411d0..bd3693404b76 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3477,7 +3477,7 @@ bool SwTokenWindow::CreateQuickHelp(Control const * pCtrl,
(ToxAuthorityField) rToken.nAuthorityField);
}
- Point aPos = OutputToScreenPixel(pCtrl->GetPosPixel());
+ Point aPos = m_pCtrlParentWin->OutputToScreenPixel(pCtrl->GetPosPixel());
tools::Rectangle aItemRect( aPos, pCtrl->GetSizePixel() );
if ( rToken.eTokenType != TOKEN_TAB_STOP )
{
More information about the Libreoffice-commits
mailing list