summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-17 11:39:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-17 14:36:41 +0200
commit0994fcef4b401ff7a99a9e8e882f6e2697d310c7 (patch)
tree1c27c731ec441a385291c06ab4a4d68a135c2d27
parent0662f319324e55a80bb789e960a752c172feb530 (diff)
Resolves: tdf#119325 tooltip position should be relative to widget
Change-Id: I244f2d6cd89fd53d7a874cac593f3759d75966da Reviewed-on: https://gerrit.libreoffice.org/59256 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/vcl/layout.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 4d9702d04c38..d33a942c8717 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -675,7 +675,7 @@ private:
{
if (rHelpEvent.GetMode() & (HelpEventMode::QUICK | HelpEventMode::BALLOON))
{
- Point aPos(rHelpEvent.GetMousePosPixel());
+ Point aPos(ScreenToOutputPixel(rHelpEvent.GetMousePosPixel()));
tools::Rectangle aHelpArea(aPos.X(), aPos.Y());
OUString sHelpTip = m_aQueryTooltipHdl.Call(aHelpArea);
if (sHelpTip.isEmpty())