[LyX/master] Graphics inset is not forceLTR without pdftex (#12865)

Juergen Spitzmueller spitz at lyx.org
Fri Aug 11 09:10:56 UTC 2023


commit 6671f9bee1cf8fb551dfb08ca7676ab3ffcea989
Author: Udi Fogiel <udifoglle at gmail.com>
Date:   Thu Aug 10 06:33:52 2023 +0300

    Graphics inset is not forceLTR without pdftex (#12865)
---
 src/insets/InsetGraphics.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h
index ff450d1..df2abc4 100644
--- a/src/insets/InsetGraphics.h
+++ b/src/insets/InsetGraphics.h
@@ -116,8 +116,8 @@ public:
 				  UpdateType utype, TocBackend & backend) const override;
 	///
 	std::string contextMenuName() const override;
-	/// Force inset into LTR environment if surroundings are RTL
-	bool forceLTR(OutputParams const &) const override { return true; }
+	/// Force inset into LTR environment if surroundings are RTL (only needed in pdfTeX)
+	bool forceLTR(OutputParams const & runparams) const override { return !runparams.isFullUnicode(); }
 	///
 	void doDispatch(Cursor & cur, FuncRequest & cmd) override;
 	///


More information about the lyx-cvs mailing list