mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
Fix bug 5246
http://bugzilla.lyx.org/show_bug.cgi?id=5246 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26403 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1c3515769
commit
1383629299
@ -1829,6 +1829,8 @@ void Cursor::handleFont(string const & font)
|
|||||||
safe = cap::grabAndEraseSelection(*this);
|
safe = cap::grabAndEraseSelection(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
recordUndoInset();
|
||||||
|
|
||||||
if (lastpos() != 0) {
|
if (lastpos() != 0) {
|
||||||
// something left in the cell
|
// something left in the cell
|
||||||
if (pos() == 0) {
|
if (pos() == 0) {
|
||||||
@ -1848,8 +1850,9 @@ void Cursor::handleFont(string const & font)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// nothing left in the cell
|
// nothing left in the cell
|
||||||
pullArg();
|
popBackward();
|
||||||
plainErase();
|
plainErase();
|
||||||
|
resetAnchor();
|
||||||
}
|
}
|
||||||
insert(safe);
|
insert(safe);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user