* src/Text3.cpp (doInsertInset):

- update metrics before pasting selected content
	  (fix bug 4502).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22892 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-02-09 10:47:23 +00:00
parent 35edf68dbc
commit e99adb41bc
2 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,8 @@ bool doInsertInset(Cursor & cur, Text * text,
inset->edit(cur, true);
if (gotsel && pastesel) {
// metrics might be invalid at this point (bug 4502)
cur.bv().updateMetrics();
lyx::dispatch(FuncRequest(LFUN_PASTE, "0"));
// reset first par to default
if (cur.lastpit() != 0 || cur.lastpos() != 0) {

View File

@ -134,6 +134,9 @@ What's new
- Fix a crash after converting a formula to eqnarray while a selection
was active (bug 4452).
- Fix an assertion when inserting a box in a list while at least one
paragraph of that list was selected (bug 5402).
- Do not exit after catching an iconv exception (bug 4385, part 2).
- Fix update/drawing of character style insets.