]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetInfo.cpp
Fix text direction issue for InsetInfo in RTL context
[features.git] / src / insets / InsetInfo.cpp
index d949de1b3a344a94a7a720e4b7978a1fc42eda64..97fe6ff06ec5380fc27fb88148ccb31ae36c00b6 100644 (file)
@@ -21,6 +21,7 @@
 #include "InsetSpecialChar.h"
 #include "KeyMap.h"
 #include "LaTeXFeatures.h"
+#include "Language.h"
 #include "LayoutFile.h"
 #include "Length.h"
 #include "LyXAction.h"
@@ -296,6 +297,12 @@ void InsetInfo::setText(docstring const & str)
 }
 
 
+bool InsetInfo::forceLTR() const
+{
+       return !buffer().params().language->rightToLeft();
+}
+
+
 void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype) {
        // If the Buffer is a clone, then we neither need nor want to do any
        // of what follows. We want, rather, just to inherit how things were