From 6671f9bee1cf8fb551dfb08ca7676ab3ffcea989 Mon Sep 17 00:00:00 2001 From: Udi Fogiel Date: Thu, 10 Aug 2023 06:33:52 +0300 Subject: [PATCH] Graphics inset is not forceLTR without pdftex (#12865) --- src/insets/InsetGraphics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index ff450d1b9a..df2abc4b01 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; /// -- 2.39.5