pastesel.patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4172 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-05-15 23:50:48 +00:00
parent 0209d7f08e
commit 4782d3d62a
7 changed files with 22 additions and 1 deletions

View File

@ -427,6 +427,8 @@ void BufferView::paste()
// paste
text->pasteSelection(this);
// bug 393
text->clearSelection();
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
// why fake a selection only I think it should be a real one and not only
// a painted one (Jug 20020318).

View File

@ -1530,6 +1530,7 @@ void BufferView::Pimpl::pasteClipboard(bool asPara)
} else {
bv_->getLyXText()->insertStringAsLines(bv_, clip);
}
bv_->getLyXText()->clearSelection();
update(bv_->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
}

View File

@ -1,3 +1,8 @@
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
* BufferView_pimpl.C:
* BufferView2.C: clear selection on paste (bug 393)
2002-05-14 Lars Gullik Bjønnes <larsbj@birdstep.com>
* DepTable.C: include ctime

View File

@ -1,3 +1,7 @@
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
* insettext.C: clear selection on paste (bug 393)
2002-05-11 Dekel Tsur <dekelts@tau.ac.il>
* insettext.C (latex): Honor the moving_arg argument.

View File

@ -1379,6 +1379,9 @@ InsetText::localDispatch(BufferView * bv,
} else {
lt->insertStringAsLines(bv, clip);
}
// bug 393
lt->clearSelection();
updwhat = CURSOR_PAR;
updflag = true;
break;
@ -1396,6 +1399,8 @@ InsetText::localDispatch(BufferView * bv,
setUndo(bv, Undo::INSERT,
lt->cursor.par(), lt->cursor.par()->next());
lt->pasteSelection(bv);
// bug 393
lt->clearSelection();
updwhat = CURSOR_PAR;
updflag = true;
}

View File

@ -1,3 +1,7 @@
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
* math_cursor.C: clear selection on paste (bug 393)
2002-05-15 André Pönitz <poenitz@gmx.net>
* math_cursor.[Ch]: honor lyxrc setting for auto_delete_region

View File

@ -691,7 +691,7 @@ void MathCursor::selPaste()
selClearOrDel();
theSelection.paste(*this);
//theSelection.grab(*this);
//selClear();
selClear();
}