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:
André Pönitz 2002-07-08 16:30:09 +00:00
parent d2ef0fed95
commit 5a5bd85d0d
2 changed files with 22 additions and 0 deletions

View File

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

View File

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