mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
fix crash on import
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17487 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7a1dd08d1d
commit
9be5a43d56
@ -337,7 +337,10 @@ bool Converters::convert(Buffer const * buffer,
|
|||||||
from_ascii(from_format), from_ascii(to_format)));
|
from_ascii(from_format), from_ascii(to_format)));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
OutputParams runparams(&buffer->params().encoding());
|
|
||||||
|
// buffer is only invalid for importing, and then runparams is not
|
||||||
|
// used anyway.
|
||||||
|
OutputParams runparams(buffer ? &buffer->params().encoding() : 0);
|
||||||
runparams.flavor = getFlavor(edgepath);
|
runparams.flavor = getFlavor(edgepath);
|
||||||
|
|
||||||
// Some converters (e.g. lilypond) can only output files to the
|
// Some converters (e.g. lilypond) can only output files to the
|
||||||
|
Loading…
Reference in New Issue
Block a user