]> git.lyx.org Git - lyx.git/commitdiff
Set RTL tooltips RTL
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 21 Jul 2018 16:23:47 +0000 (18:23 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Jul 2018 08:18:27 +0000 (10:18 +0200)
Fixes: #10672
(cherry picked from commit edb2d1412482bdf302fd0902778433f96a4c2ed4)

src/insets/InsetText.cpp

index c2ec43aaac06163ded24ba4547ff5da2bc28c3f4..9dc88ca367bee1193e68f8d355a9b9233fd9ff96 100644 (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;
        }