From edb2d1412482bdf302fd0902778433f96a4c2ed4 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 21 Jul 2018 18:23:47 +0200 Subject: [PATCH] Set RTL tooltips RTL Fixes: #10672 --- src/insets/InsetText.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 0f4619a994..949590b19c 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -1071,7 +1071,11 @@ docstring InsetText::toolTipText(docstring prefix, size_t const len) const for (; it != end; ++it) { if (it != beg) oss << '\n'; + if ((*it).isRTL(buffer().params())) + oss << "
"; writePlaintextParagraph(buffer(), *it, oss, rp, ref_printed, len); + if ((*it).isRTL(buffer().params())) + oss << "
"; if (oss.tellp() >= 0 && size_t(oss.tellp()) > len) break; }