Set RTL tooltips RTL

Fixes: #10672
(cherry picked from commit edb2d14124)
This commit is contained in:
Juergen Spitzmueller 2018-07-21 18:23:47 +02:00
parent 485f070887
commit 7ec4fa149c

View File

@ -1056,7 +1056,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 << "<div dir=\"rtl\">";
writePlaintextParagraph(buffer(), *it, oss, rp, ref_printed, len);
if ((*it).isRTL(buffer().params()))
oss << "<div/>";
if (oss.tellp() >= 0 && size_t(oss.tellp()) > len)
break;
}