Check if literal param exists before querying value.

Otherwise LyX asserts.
This commit is contained in:
Juergen Spitzmueller 2017-01-30 08:27:53 +01:00
parent e15a8f3551
commit caf72c07cd

View File

@ -160,7 +160,8 @@ int InsetCommand::docbook(odocstream &, OutputParams const &) const
void InsetCommand::validate(LaTeXFeatures & features) const
{
if (params()["literal"] == "true")
if (params().info().hasParam("literal")
&& params()["literal"] == "true")
return;
ParamInfo::const_iterator it = params().info().begin();