http://bugzilla.lyx.org/show_bug.cgi?id=4502

The attached patch fixes this bug (which is branch-only).

Abdel, does it make sense?

Jürgen
Index: src/Text3.cpp
===================================================================
--- src/Text3.cpp	(Revision 22864)
+++ src/Text3.cpp	(Arbeitskopie)
@@ -268,6 +268,8 @@
 		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) {

Reply via email to