]> git.lyx.org Git - features.git/commitdiff
Reset properly the cursor font when leaving an inset to the left
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 21 Jul 2015 09:50:36 +0000 (11:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 21 Jul 2015 09:50:36 +0000 (11:50 +0200)
There was a missing setCursorFont there.

Fixes bug #6032.

src/Text3.cpp

index eb8f7a0cc291da2d331a51cb00979fc32fc8be00..7f94185fa2eefd2e4706dd99fdc20ae198ec8b32 100644 (file)
@@ -2233,6 +2233,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_FINISHED_BACKWARD:
                LYXERR(Debug::DEBUG, "handle LFUN_FINISHED_BACKWARD:\n" << cur);
+               cur.setCurrentFont();
                break;
 
        case LFUN_FINISHED_FORWARD: