Am Montag, 24. November 2003 09:42 schrieb Andre Poenitz:
> On Sun, Nov 23, 2003 at 11:42:46PM +0100, Michael Schmitt wrote:
> > Hello everybody,
> >
> > we planned to release LyX 1.4 on Christmas, didn't we? Well, that's in
> > just 30 days...
>
> This was assuming that four people fix three bugs per week each or
> so...
Here is one fix for bug #546. My colleages and I are using it without
problems with 1.3. I sent this already in September, but it was somehow
lost. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg61478.html
for details.
Georg
Index: src/lyxfunc.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.543
diff -u -p -r1.543 lyxfunc.C
--- src/lyxfunc.C 2003/11/20 10:38:10 1.543
+++ src/lyxfunc.C 2003/11/20 19:25:20
@@ -1278,10 +1278,15 @@ void LyXFunc::dispatch(FuncRequest const
setMessage(N_("Opening child document ") +
MakeDisplayPath(filename) + "...");
view()->savePosition(0);
+ string const parentfilename = owner->buffer()->fileName();
if (bufferlist.exists(filename))
view()->buffer(bufferlist.getBuffer(filename));
else
view()->loadLyXFile(filename);
+ // Set the parent name of the child document.
+ // This makes insertion of citations and references in the child work,
+ // when the target is in the parent or another child document.
+ owner->buffer()->setParentName(parentfilename);
break;
}