]> git.lyx.org Git - lyx.git/commit
When drawing macro names, enforce LtR direction
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Sep 2023 10:41:44 +0000 (12:41 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Sep 2023 10:41:44 +0000 (12:41 +0200)
commit94c6d45b74f815c8c924ed88b30f246201733f05
tree59ea74841e5f76c03b7e68b0325c81c6aa5cf153
parentfcbbb138a26ceea890d0cebbacbf20a84d3210bf
When drawing macro names, enforce LtR direction

Add a Direction parameter to the Painter::text methods that take a
FontInfo parameter.

In drawStrRed and drawStrBlack, force the direction to LtR.

Fixes bug #12905.
src/frontends/NullPainter.h
src/frontends/Painter.h
src/frontends/qt/GuiPainter.cpp
src/frontends/qt/GuiPainter.h
src/mathed/MathSupport.cpp