From f61322848d437931a95369e9eb3a40f603a5fa3f Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 24 Nov 2003 12:00:20 +0000 Subject: [PATCH] fix a crash while importing from LaTeX git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8124 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/converter.C | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ea2638efdf..96540e254d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-11-24 Alfredo Braunstein + + * converter.C (convert): fix a crash: this function gets + called with buffer == 0 from importer code. + 2003-11-22 Lars Gullik Bjonnes * text3.C (cursorPrevious): make sure that we do not compare diff --git a/src/converter.C b/src/converter.C index 906678fe1a..82f74c372a 100644 --- a/src/converter.C +++ b/src/converter.C @@ -355,7 +355,9 @@ bool Converters::convert(Buffer const * buffer, dvipdfm_options(buffer->params())); lyxerr[Debug::FILES] << "Calling " << command << endl; - buffer->message(_("Executing command: ") + command); + if (buffer) + buffer->message(_("Executing command: ") + + command); Systemcall::Starttype type = (dummy) ? Systemcall::DontWait : Systemcall::Wait; -- 2.39.2