Re: r22002 - in /lyx-devel/trunk/src: LyXFunc.cpp LyXFunc.h b...

2007-12-07 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED] wrote: Author: younes Date: Fri Dec 7 12:57:13 2007 New Revision: 22002 +void GuiView::newDocument(string const & filename, bool from_template) +{ + FileName initpath; + Buffer * buf = buff

Re: r22002 - in /lyx-devel/trunk/src: LyXFunc.cpp LyXFunc.h b...

2007-12-07 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Author: younes >> Date: Fri Dec 7 12:57:13 2007 >> New Revision: 22002 > >> +void GuiView::newDocument(string const & filename, bool from_template) >> +{ >> +FileName initpath; >> +Buffer * buf = buffer(); >> +

Re: r22002 - in /lyx-devel/trunk/src: LyXFunc.cpp LyXFunc.h b...

2007-12-07 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: younes Date: Fri Dec 7 12:57:13 2007 New Revision: 22002 +void GuiView::newDocument(string const & filename, bool from_template) +{ + FileName initpath; + Buffer * buf = buffer(); + if (buf) { + FileName const trypath(buf->fileP