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:
Georg Baum 2007-03-19 20:39:30 +00:00
parent 7a1dd08d1d
commit 9be5a43d56

View File

@ -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