Le 25/07/2018 à 13:40, Jürgen Spitzmüller a écrit :
Am Mittwoch, den 25.07.2018, 12:16 +0200 schrieb Jean-Marc Lasgouttes:
Le 25/07/2018 à 11:42, Juergen Spitzmueller a écrit :
commit d1ec35a0dc839ddc27caebed75dd71e60cc6764f
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Wed Jul 25 11:38:56 2018 +0200

      Amend 79cf3f5ec10
Some InfoInsets have to be LTR always.

Why don't you test for type_ == SHORTCUT_INFO or SHORTCUTS_INFO in
forceLTR() instead of introducing this boolean?

because we use localized strings if the action is unknown or no binding
exists, and this string can be RTL.

I see. So you could actually do
  force_ltr_ = bp.language->rightToLeft() ;
in InsetInfo::updateBuffer().

Anyway, I am currently looking into a more general solution wrt #5348.

Great.

JMarc

Reply via email to