An annoying bug in multipart document support occurs when you use a
VCS like RCS on the documents. Load the master, update DVI to get all
the other parts loaded, now try to edit one of the auto-loaded docs.
You can't because the lyxvc for that document wasn't setup.
A simple one line fix is attached.
I considered moving the lyxvc code from loadLyXFile() into readFile()
instead but decided that would be too dramatic and probably not the
right thing to do anyway. Besides, I want this change in 1.3.0 if it
isn't already out the door.
I keep getting "Error 400" when trying to access bugzilla.lyx.org.
Any ideas?
Allan. (ARRae)
Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.552
diff -u -p -r1.552 ChangeLog
--- src/insets/ChangeLog 23 Jan 2003 16:23:41 -0000 1.552
+++ src/insets/ChangeLog 30 Jan 2003 04:05:54 -0000
@@ -1,3 +1,8 @@
+2003-01-27 Allan Rae <[EMAIL PROTECTED]>
+
+ * insetinclude.C (loadIfNeeded): included files might be under
+ VCS control so we need loadLyXFile() not readFile() for that.
+
2003-01-20 Michael Schmitt <[EMAIL PROTECTED]>
* insetert.C:
Index: src/insets/insetinclude.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetinclude.C,v
retrieving revision 1.91
diff -u -p -r1.91 insetinclude.C
--- src/insets/insetinclude.C 4 Dec 2002 12:07:48 -0000 1.91
+++ src/insets/insetinclude.C 30 Jan 2003 04:05:54 -0000
@@ -274,7 +274,7 @@ bool InsetInclude::loadIfNeeded() const
if (!finfo.isOK())
return false;
- return bufferlist.readFile(getFileName(), !finfo.writable()) != 0;
+ return bufferlist.loadLyXFile(getFileName(), false) != 0;
}