commit edb2d1412482bdf302fd0902778433f96a4c2ed4
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Jul 21 18:23:47 2018 +0200
Set RTL tooltips RTL
Fixes: #10672
---
src/insets/InsetText.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 0f4619a..949590b 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 << "<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;
}