X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText2.cpp;h=9e6ec8ee1f038c0dbf7815f11c6c34c14b67757c;hb=af16acb0b4c5379ac87fe0c9fae384af1babdc3a;hp=5a41761c301f29013e7df7244a9160e4aa90ccee;hpb=ab1e13702ecdea72c4660f30bd9e55e72b862e6f;p=lyx.git diff --git a/src/Text2.cpp b/src/Text2.cpp index 5a41761c30..9e6ec8ee1f 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -22,7 +22,6 @@ #include "Text.h" -#include "Bidi.h" #include "Buffer.h" #include "buffer_funcs.h" #include "BufferList.h" @@ -615,6 +614,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front) if (!front) --cur.pos(); inset->edit(cur, front); + cur.setCurrentFont(); return true; } @@ -633,6 +633,7 @@ bool Text::checkAndActivateInsetVisual(Cursor & cur, bool movingForward, bool mo return false; inset->edit(cur, movingForward, movingLeft ? Inset::ENTRY_DIRECTION_RIGHT : Inset::ENTRY_DIRECTION_LEFT); + cur.setCurrentFont(); return true; }