summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-09 14:16:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-09 21:46:43 +0200
commit829674fa46c8c07584022b84bbc8c3d877b895c2 (patch)
tree03d642309a16e56838a408ad139181214d989162
parent2935287ea18847f9e142a35ade785ff9f510d495 (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/52634 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sw/source/ui/index/cnttab.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index eb863bdfb4c1..5705042ab855 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3469,7 +3469,7 @@ bool SwTokenWindow::CreateQuickHelp(Control const * pCtrl,
static_cast<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 )
{