diff --git a/src/insets/InsetCommand.cpp b/src/insets/InsetCommand.cpp index 2e24d4d4e1..f4f169232b 100644 --- a/src/insets/InsetCommand.cpp +++ b/src/insets/InsetCommand.cpp @@ -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();