]> git.lyx.org Git - features.git/commitdiff
fix a crash while importing from LaTeX
authorAlfredo Braunstein <abraunst@lyx.org>
Mon, 24 Nov 2003 12:00:20 +0000 (12:00 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Mon, 24 Nov 2003 12:00:20 +0000 (12:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8124 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/converter.C

index ea2638efdff2dd1130c8610377f399fd8b87e084..96540e254dffd7f896eb6cc7b10fb7eb7ea3ce97 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-24  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * converter.C (convert): fix a crash: this function gets
+       called with buffer == 0 from importer code.
+
 2003-11-22  Lars Gullik Bjonnes  <larsbj@gullik.net>
 
        * text3.C (cursorPrevious): make sure that we do not compare
index 906678fe1ab3778608f31296bf02858c4c64b532..82f74c372a90b237e0fef5f1c1f51c21024d710d 100644 (file)
@@ -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;