]> git.lyx.org Git - lyx.git/commitdiff
Check if literal param exists before querying value.
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 30 Jan 2017 07:27:53 +0000 (08:27 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 30 Jan 2017 07:27:53 +0000 (08:27 +0100)
Otherwise LyX asserts.

src/insets/InsetCommand.cpp

index 2e24d4d4e1d213f3d232fe6ee711f6c865099295..f4f169232b2a8cfb50f55547348f843543b28c57 100644 (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();