]> git.lyx.org Git - features.git/commit
Set font in BufferView::setCursor (#9500)
authorScott Kostyshak <skostysh@lyx.org>
Fri, 24 Jul 2015 03:27:47 +0000 (23:27 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 30 Jul 2015 18:08:09 +0000 (14:08 -0400)
commitf8774a446b2feb8edf664ecc71a491fce103b043
tree315590bd0231a3613542a503ca7be2675141a131
parentdb94b6f1fa61160182d62d5eb458c9c80cc74066
Set font in BufferView::setCursor (#9500)

This solves a few bugs related to the font not being set correctly.
For example, when putting a selection somewhere with
putSelectionAt(), the font was not reset so that before this commit
if the cursor was in an ERT, strange things could happen.
putSelectionAt() is notably used when highlighting the location
corresponding with a LaTeX error (GuiErrorList), when using find,
and when using the spellcheck. I could reproduce the bug using all
three of these.

Bug #9500 is an example of the type of bugs that this commit fixes.
src/BufferView.cpp