]> git.lyx.org Git - features.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>
Sat, 21 Jul 2018 16:23:47 +0000 (18:23 +0200)
Fixes: #10672
src/insets/InsetText.cpp

index 0f4619a99470fa24b6ab3b3aa068420f5e08fa65..949590b19cbd1655716528cad7887d4717fcd102 100644 (file)
@@ -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 << "<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;
        }