mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix bug 2913: "mark-on" broken.
* src/Cursor.cpp (selHandle): - handle mark() * src/Text.cpp (dissolveInset): - switch mark off before using selHandle, just in case. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22204 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
81cceb250c
commit
b8513d13e5
@ -577,6 +577,8 @@ void Cursor::info(odocstream & os) const
|
||||
bool Cursor::selHandle(bool sel)
|
||||
{
|
||||
//lyxerr << "Cursor::selHandle" << endl;
|
||||
if (mark())
|
||||
sel = true;
|
||||
if (sel == selection())
|
||||
return false;
|
||||
|
||||
|
@ -1038,6 +1038,7 @@ bool Text::dissolveInset(Cursor & cur) {
|
||||
return false;
|
||||
|
||||
cur.recordUndoInset();
|
||||
cur.mark() = false;
|
||||
cur.selHandle(false);
|
||||
// save position
|
||||
pos_type spos = cur.pos();
|
||||
|
Loading…
Reference in New Issue
Block a user