mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug where cursor size is not reset correctly.
A couple of calls to setCurrentFont fix the issue, but there has to be more cases to catch. I am not sure why it used to work.
This commit is contained in:
parent
64f001e6cd
commit
7d96531909
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user