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:
Jürgen Spitzmüller 2007-12-18 07:10:55 +00:00
parent 81cceb250c
commit b8513d13e5
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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();