diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-09 14:16:40 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-04-10 10:36:20 +0200 |
commit | 7d95ef515c604bf67e68fd4824aa0073d8a76d07 (patch) | |
tree | e637459fc8a39f36c8f592fa8608ec77b961182f | |
parent | 2c51260d91490a6fc512875d8befb38367bf3227 (diff) |
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@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |