On Sat, Apr 28, 2001 at 10:51:27AM +0200, Lars Gullik Bj�nnes wrote:
> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
>
> | On Sat, Apr 28, 2001 at 01:49:18AM +0200, Lars Gullik Bj�nnes wrote:
> | > | About to handle -x 'buffer-export ps'
> | > | Converting from latex to dvi
> | > | Running latex
> | >
> | > it is the "--export" handling that is at fault, not the actual export
> | > code.
> | >
> |
> | So, does that mean you found the problem?
>
> no, but I'll have a look.
> (The real problem IMHO is that we don't have a LyXView/BufferView. I
> always imagined that we would have a "dummy" bufferview when running
> without a gui.)
I'm going to regret that PTA quote... ;-)
Here's the fix. This seems pretty safe.
---Kayvan
--
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory
Index: src/ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v
retrieving revision 1.151
diff -u -r1.151 ChangeLog
--- src/ChangeLog 2001/04/27 14:21:18 1.151
+++ src/ChangeLog 2001/04/29 04:40:18
@@ -1,3 +1,7 @@
+2001-04-28 Kayvan A. Sylvan <[EMAIL PROTECTED]>
+
+ * LaTeX.C (run): Fix problem with --export code.
+
2001-04-27 Juergen Vigna <[EMAIL PROTECTED]>
* text.C (Fill): return 20 instead of 0 if paper_width < 0 (endless)
Index: src/LaTeX.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/LaTeX.C,v
retrieving revision 1.41
diff -u -r1.41 LaTeX.C
--- src/LaTeX.C 2001/04/17 15:15:55 1.41
+++ src/LaTeX.C 2001/04/29 04:40:18
@@ -174,7 +174,9 @@
++count;
lyxerr[Debug::LATEX] << "Run #" << count << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count));
+ if (lfun) {
+ lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' +
+tostr(count));
+ }
//WriteStatus(lfun, string(_("LaTeX run number ")) + tostr(count));
this->operator()();