Kaydet (Commit) 29c568ea authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

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/52654Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit 7d95ef51)
üst 902c259b
...@@ -3477,7 +3477,7 @@ bool SwTokenWindow::CreateQuickHelp(Control const * pCtrl, ...@@ -3477,7 +3477,7 @@ bool SwTokenWindow::CreateQuickHelp(Control const * pCtrl,
(ToxAuthorityField) rToken.nAuthorityField); (ToxAuthorityField) rToken.nAuthorityField);
} }
Point aPos = OutputToScreenPixel(pCtrl->GetPosPixel()); Point aPos = m_pCtrlParentWin->OutputToScreenPixel(pCtrl->GetPosPixel());
tools::Rectangle aItemRect( aPos, pCtrl->GetSizePixel() ); tools::Rectangle aItemRect( aPos, pCtrl->GetSizePixel() );
if ( rToken.eTokenType != TOKEN_TAB_STOP ) if ( rToken.eTokenType != TOKEN_TAB_STOP )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment