* src/text3.C (doInsertInset): reset first paragraph to default after selected content has been pasted (bug 2802)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14994 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-09-14 13:50:37 +00:00
parent 309e1990fd
commit e6bb6625ea
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-09-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* src/text3.C (doInsertInset): reset first paragraph to default
after selected content has been pasted (bug 2802)
2006-09-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2006-09-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lfuns.h: * lfuns.h:

View File

@ -268,8 +268,15 @@ bool doInsertInset(LCursor & cur, LyXText * text,
if (edit) if (edit)
inset->edit(cur, true); inset->edit(cur, true);
if (gotsel && pastesel) if (gotsel && pastesel) {
cur.bv().owner()->dispatch(FuncRequest(LFUN_PASTE)); cur.bv().owner()->dispatch(FuncRequest(LFUN_PASTE));
// reset first par to default
if (cur.lastpit() != 0 || cur.lastpos() != 0) {
LyXLayout_ptr const layout =
cur.buffer().params().getLyXTextClass().defaultLayout();
cur.text()->paragraphs().begin()->layout(layout);
}
}
return true; return true;
} }

View File

@ -99,6 +99,9 @@ What's new
- On pressing button 2 in a math inset, paste the inner LyX selection - On pressing button 2 in a math inset, paste the inner LyX selection
if it exists (bug 2779). if it exists (bug 2779).
- When inserting an inset (footnote etc.) over an existing selection,
don't copy the layout of the source paragraph to the inset (bug 2802).
- Fix the disabling of some toolbar icons after closing a dialog (bug 2423). - Fix the disabling of some toolbar icons after closing a dialog (bug 2423).
- Fix the editing of a document while Error List dialog is open (bug 2179). - Fix the editing of a document while Error List dialog is open (bug 2179).