diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-20 14:18:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-20 21:11:06 +0200 |
commit | d6d82d3f2b4a468e4ca432c964f0923ce289d862 (patch) | |
tree | b52126d9c9eba247d6af179f37c67f60ce5e14c5 /include/vcl | |
parent | 9345ef1cbd14411b7b5b328423fca1d443e623eb (diff) |
Resolves: tdf#125369 recover newline support of tdf#101779
Change-Id: Ia46fc89f056c714e9a06c48e980277025fb16a61
Reviewed-on: https://gerrit.libreoffice.org/72602
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/layout.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 2ea881a31fd6..cb031a0efe3b 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -696,7 +696,9 @@ private: aPt = OutputToScreenPixel(aHelpArea.BottomRight()); aHelpArea.SetRight(aPt.X()); aHelpArea.SetBottom(aPt.Y()); - Help::ShowQuickHelp(this, aHelpArea, sHelpTip); + // tdf#125369 recover newline support of tdf#101779 + QuickHelpFlags eHelpWinStyle = sHelpTip.indexOf('\n') != -1 ? QuickHelpFlags::TipStyleBalloon : QuickHelpFlags::NONE; + Help::ShowQuickHelp(this, aHelpArea, sHelpTip, eHelpWinStyle); } } virtual FactoryFunction GetUITestFactory() const override |