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

The fix is simple. Juergen, could you confirm, please?

JMarc

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.2285
diff -u -p -r1.2285 ChangeLog
--- src/ChangeLog	20 Sep 2005 08:31:33 -0000	1.2285
+++ src/ChangeLog	20 Sep 2005 12:36:04 -0000
@@ -1,3 +1,7 @@
+2005-09-20  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* cursor.C (paste): do nothing if `data' is empty. (bug 2033)
+
 2005-09-19  Martin Vermeer  <[EMAIL PROTECTED]>
 
 	* rowpainter.C (paintText): fix RtL space width display bug (2029)
Index: src/cursor.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/cursor.C,v
retrieving revision 1.134
diff -u -p -r1.134 cursor.C
--- src/cursor.C	20 Sep 2005 08:31:34 -0000	1.134
+++ src/cursor.C	20 Sep 2005 12:36:04 -0000
@@ -376,7 +376,8 @@ void LCursor::getPos(int & x, int & y) c
 
 void LCursor::paste(string const & data)
 {
-	dispatch(FuncRequest(LFUN_PASTE, data));
+	if (!data.empty())
+		dispatch(FuncRequest(LFUN_PASTE, data));
 }
 
 
Index: src/text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.629
diff -u -p -r1.629 text2.C
--- src/text2.C	20 Sep 2005 08:31:34 -0000	1.629
+++ src/text2.C	20 Sep 2005 12:36:04 -0000
@@ -219,7 +219,7 @@ LyXFont LyXText::getLayoutFont(pit_type 
 
 	LyXFont font = layout->font;
 	// Realize with the fonts of lesser depth.
-	//font.realize(outerFont(pit, paragraphs()));
+	font.realize(outerFont(pit, paragraphs()));
 	font.realize(defaultfont_);
 
 	return font;

Reply via email to