This patch fixes the following bug:

1/ create an InsetInclude with type 'include'

2/ place the cursor after the inset and hit <return>

3/ see how the button turned into a small white square.

The following patch fixes it here. Angus, I'd appreciate your comments
on whether it is the right way to do it. 

JMarc

Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.1111
diff -u -p -r1.1111 ChangeLog
--- src/insets/ChangeLog	20 Feb 2005 22:46:22 -0000	1.1111
+++ src/insets/ChangeLog	22 Feb 2005 11:46:30 -0000
@@ -1,3 +1,9 @@
+2005-02-22  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* insetinclude.C (InsetInclude): when constructing from another
+	InsetInclude, set set_label_ to false, since the value is never
+	copied.
+
 2005-02-20  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
 	* insettext.C: include boost/current_function.hpp (needed when
Index: src/insets/insetinclude.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetinclude.C,v
retrieving revision 1.202
diff -u -p -r1.202 insetinclude.C
--- src/insets/insetinclude.C	31 Jan 2005 10:42:23 -0000	1.202
+++ src/insets/insetinclude.C	22 Feb 2005 11:46:30 -0000
@@ -107,7 +107,7 @@ InsetInclude::InsetInclude(InsetInclude 
 	  params_(other.params_),
 	  include_label(other.include_label),
 	  preview_(new RenderMonitoredPreview(this)),
-	  set_label_(other.set_label_)
+	  set_label_(false)
 {
 	preview_->fileChanged(boost::bind(&InsetInclude::fileChanged, this));
 }

Reply via email to