]> git.lyx.org Git - features.git/blobdiff - src/Text3.cpp
Fix bug where cursor size is not reset correctly.
[features.git] / src / Text3.cpp
index 94c6d13fbce23cb6c652dd046af6fe1b4ed17ff2..0d7aa48a01e11b29b0aaecf830f51bb56e61974a 100644 (file)
@@ -131,6 +131,7 @@ static void moveCursor(Cursor & cur, bool selecting)
 {
        if (selecting || cur.mark())
                cur.setSelection();
+       cur.setCurrentFont();
 }
 
 
@@ -1262,6 +1263,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                                // and the selection is not really cut,
                                // move cursor before selection (#11630)
                                cur.setCursor(dit);
+                       cur.setCurrentFont();
                        singleParUpdate = false;
                }
                break;