mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
John's patch for #93
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d2ef0fed95
commit
5a5bd85d0d
@ -3232,10 +3232,27 @@ void BufferView::Pimpl::smartQuote()
|
||||
|
||||
void BufferView::Pimpl::insertAndEditInset(Inset * inset)
|
||||
{
|
||||
#if 0
|
||||
if (insertInset(inset))
|
||||
inset->edit(bv_);
|
||||
else
|
||||
delete inset;
|
||||
#else
|
||||
bool gotsel = false;
|
||||
|
||||
if (bv_->getLyXText()->selection.set()) {
|
||||
bv_->getLyXText()->cutSelection(bv_, true, false);
|
||||
gotsel = true;
|
||||
}
|
||||
|
||||
if (insertInset(inset)) {
|
||||
inset->edit(bv_);
|
||||
if (gotsel)
|
||||
owner_->getLyXFunc()->dispatch(LFUN_PASTESELECTION);
|
||||
}
|
||||
else
|
||||
delete inset;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
|
||||
2002-07-08 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* BufferView_pimpl.C: apply John's patch for #93.
|
||||
|
||||
2002-07-05 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* BufferView_pimpl.C (buffer): generate previews if desired.
|
||||
|
Loading…
Reference in New Issue
Block a user