mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +00:00
Fix bug #7553 (Crash on latex import, also on html import)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38734 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eef204ca33
commit
129e00aa24
@ -307,7 +307,8 @@ bool Converters::convert(Buffer const * buffer,
|
||||
LYXERR(Debug::FILES, "No converter defined! "
|
||||
"I use convertDefault.py:\n\t" << command);
|
||||
Systemcall one;
|
||||
one.startscript(Systemcall::Wait, command, buffer->filePath());
|
||||
one.startscript(Systemcall::Wait, command, buffer ?
|
||||
buffer->filePath() : string());
|
||||
if (to_file.isReadableFile()) {
|
||||
if (conversionflags & try_cache)
|
||||
ConverterCache::get().add(orig_from,
|
||||
@ -444,13 +445,14 @@ bool Converters::convert(Buffer const * buffer,
|
||||
if (dummy) {
|
||||
res = one.startscript(Systemcall::DontWait,
|
||||
to_filesystem8bit(from_utf8(command)),
|
||||
buffer->filePath());
|
||||
buffer ? buffer->filePath() : string());
|
||||
// We're not waiting for the result, so we can't do anything
|
||||
// else here.
|
||||
} else {
|
||||
res = one.startscript(Systemcall::Wait,
|
||||
to_filesystem8bit(from_utf8(command)),
|
||||
buffer->filePath());
|
||||
buffer ? buffer->filePath()
|
||||
: string());
|
||||
if (!real_outfile.empty()) {
|
||||
Mover const & mover = getMover(conv.to);
|
||||
if (!mover.rename(outfile, real_outfile))
|
||||
|
Loading…
Reference in New Issue
Block a user